Closed emhane closed 1 month ago
cannot make new variant OpReceiptEnvelope::Ecotone
due to same tx type as eip4844 (ty = 3). hence, must change type wrapped in OpReceiptEnvelope::Eip4844
, but leave fields as option to allow for eip4844 and ecotone receipts for tx type 3.
good call @refcell
Component
consensus, eips, genesis, rpc
Describe the feature you would like
To add OP fields, either make
new variants oftypeOpReceiptEnvelope
, e.g.OpReceiptEnvelope::Ecotone
OpEcotoneReceipt
for blob fields, or re-define typeOpTransactionReceipt
. Implement decoding ofOpTransactionReceipt
with OP fields. Adding directly toOpTransactionReceipt
may make sense for some op fields, for others not.Ref https://github.com/ethereum-optimism/op-geth/blob/f2e69450c6eec9c35d56af91389a1c47737206ca/core/types/receipt.go#L87-L87
Additional context
Deposit tx envelope has fields for deposit nonce, and so does
OptimismTransactionReceiptFields
, soOptimismTransactionReceiptFields
cannot be added toOpTransactionReceipt
as is.