fix: fix (r *Receipt) decodeTyped (#617)

This commit is contained in:
HAOYUatHZ 2024-01-15 20:49:35 +08:00 committed by GitHub
parent 713fc8c254
commit 14d8266fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ func (r *Receipt) decodeTyped(b []byte) error {
return errShortTypedReceipt return errShortTypedReceipt
} }
switch b[0] { switch b[0] {
case DynamicFeeTxType, AccessListTxType, BlobTxType: case DynamicFeeTxType, AccessListTxType, BlobTxType, L1MessageTxType:
var data receiptRLP var data receiptRLP
err := rlp.DecodeBytes(b[1:], &data) err := rlp.DecodeBytes(b[1:], &data)
if err != nil { if err != nil {