Skip to content

Commit

Permalink
func EncodeRLP
Browse files Browse the repository at this point in the history
  • Loading branch information
JukLee0ira committed Sep 24, 2024
1 parent 75dbec3 commit d079ab6
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 @@ -248,12 +248,9 @@ type ReceiptForStorage Receipt
// EncodeRLP implements rlp.Encoder, and flattens all content fields of a receipt
// into an RLP stream.
func (r *ReceiptForStorage) EncodeRLP(w io.Writer) error {
enc := &v3StoredReceiptRLP{
enc := &storedReceiptRLP{
PostStateOrStatus: (*Receipt)(r).statusEncoding(),
CumulativeGasUsed: r.CumulativeGasUsed,
Bloom: r.Bloom,
TxHash: r.TxHash,
ContractAddress: r.ContractAddress,
Logs: make([]*Log, len(r.Logs)),
}
for i, log := range r.Logs {
Expand Down

0 comments on commit d079ab6

Please sign in to comment.