Skip to content

Commit

Permalink
Remove refs to dropped legacy types
Browse files Browse the repository at this point in the history
This removes references to types removed in
ethereum/go-ethereum#26225
  • Loading branch information
Tristan-Wilson committed Feb 28, 2023
1 parent c863fd8 commit 2c6866f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions core/types/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type arbLegacyStoredReceiptRLP struct {
L1GasUsed uint64
Status uint64
ContractAddress common.Address
Logs []*LogForStorage
Logs []*Log
}

// v4StoredReceiptRLP is the storage encoding of a receipt used in database version 4.
Expand Down Expand Up @@ -331,13 +331,7 @@ func (r *ReceiptForStorage) DecodeRLP(s *rlp.Stream) error {
if err := decodeStoredReceiptRLP(r, blob); err == nil {
return nil
}
if err := decodeArbitrumLegacyStoredReceiptRLP(r, blob); err == nil {
return nil
}
if err := decodeV3StoredReceiptRLP(r, blob); err == nil {
return nil
}
return decodeV4StoredReceiptRLP(r, blob)
return decodeArbitrumLegacyStoredReceiptRLP(r, blob)
}

func decodeArbitrumLegacyStoredReceiptRLP(r *ReceiptForStorage, blob []byte) error {
Expand Down

0 comments on commit 2c6866f

Please sign in to comment.