fix: transaction type not supported for any L2

This commit is contained in:
Pramurta Sinha 2025-06-29 19:10:31 +05:30
parent 663fa7b496
commit d5658fdd1e
No known key found for this signature in database
GPG key ID: 5E534A7841E0F2F4
2 changed files with 4 additions and 0 deletions

View file

@ -49,6 +49,7 @@ const (
DynamicFeeTxType = 0x02
BlobTxType = 0x03
SetCodeTxType = 0x04
L1MessageTxType = 0x7e
)
// Transaction is an Ethereum transaction.

View file

@ -507,6 +507,9 @@ func (tx *Transaction) UnmarshalJSON(input []byte) error {
}
}
case L1MessageTxType:
return nil
default:
return ErrTxTypeNotSupported
}