From 48d7bf167594cd2f57a603359fabf3ec2ae98dd4 Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Mon, 15 Jan 2024 01:04:48 +0800 Subject: [PATCH 1/2] fix(receipt): L1 message type tx RLP decoding --- core/types/receipt.go | 2 +- params/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/types/receipt.go b/core/types/receipt.go index f7312c473c37..1fc397da7f68 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -207,7 +207,7 @@ func (r *Receipt) DecodeRLP(s *rlp.Stream) error { return errEmptyTypedReceipt } r.Type = b[0] - if r.Type == AccessListTxType || r.Type == DynamicFeeTxType { + if r.Type == AccessListTxType || r.Type == DynamicFeeTxType || r.Type == L1MessageTxType { var dec receiptRLP if err := rlp.DecodeBytes(b[1:], &dec); err != nil { return err diff --git a/params/version.go b/params/version.go index 43885f6ec942..f41ff0702507 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 5 // Major version component of the current release VersionMinor = 1 // Minor version component of the current release - VersionPatch = 11 // Patch version component of the current release + VersionPatch = 12 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string ) From 740d00e0e7b1abd26e1024caf4362be44a8d7345 Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Mon, 15 Jan 2024 14:01:00 +0800 Subject: [PATCH 2/2] another --- core/types/receipt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/receipt.go b/core/types/receipt.go index 1fc397da7f68..41f011b7acb0 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -243,7 +243,7 @@ func (r *Receipt) decodeTyped(b []byte) error { return errEmptyTypedReceipt } switch b[0] { - case DynamicFeeTxType, AccessListTxType: + case DynamicFeeTxType, AccessListTxType, L1MessageTxType: var data receiptRLP err := rlp.DecodeBytes(b[1:], &data) if err != nil {