diff --git a/types/txn.go b/types/txn.go index a099f7283..ea63358c9 100644 --- a/types/txn.go +++ b/types/txn.go @@ -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 && slot.Type < DepositTxType { + 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 {