Skip to content

Commit

Permalink
Do not prefix deposit tx type twice when calculating receipt trie root.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsutton authored and palango committed Sep 26, 2023
1 parent f4490eb commit bb6827d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/types/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,7 @@ func (rs Receipts) EncodeIndex(i int, w *bytes.Buffer) {
}
w.WriteByte(r.Type)
switch r.Type {
case AccessListTxType, DynamicFeeTxType, BlobTxType:
rlp.Encode(w, data)
case DepositTxType:
w.WriteByte(DepositTxType)
case AccessListTxType, DynamicFeeTxType, BlobTxType, DepositTxType:
rlp.Encode(w, data)
default:
// For unsupported types, write nothing. Since this is for
Expand Down

0 comments on commit bb6827d

Please sign in to comment.