Skip to content

Commit

Permalink
Merge pull request #20 from testinprod-io/fix-unknown-tx-type-check
Browse files Browse the repository at this point in the history
Fix unknown TX type check
  • Loading branch information
ImTei authored Jul 24, 2023
2 parents 376618e + 28a38b6 commit b7b8746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (ctx *TxParseContext) ParseTransaction(payload []byte, pos int, slot *TxSlo
// If it is non-legacy transaction, the transaction type follows, and then the the list
if !legacy {
slot.Type = payload[p]
if slot.Type > BlobTxType {
if slot.Type > BlobTxType && slot.Type != DepositTxType {
return 0, fmt.Errorf("%w: unknown transaction type: %d", ErrParseTxn, slot.Type)
}
if _, err = ctx.Keccak1.Write(payload[p : p+1]); err != nil {
Expand Down

0 comments on commit b7b8746

Please sign in to comment.