-
Notifications
You must be signed in to change notification settings - Fork 2.1k
refactor(anvil): replace DepositReceipt
withl op-alloy
's
#11640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@mattsse for your review ser |
EIP7702(ReceiptWithBloom<T>), | ||
#[serde(rename = "0x7E", alias = "0x7e")] | ||
Deposit(DepositReceipt<T>), | ||
Deposit(OpDepositReceiptWithBloom), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a type alias for ReceiptWithBloom<OpDepositReceipt<T>>
imo, in this case, we either make T
the generic for the log type, or we just ditch T
entirely and make the other ReceiptWithBloom<T>
concrete: ReceiptWithBloom<Receipt<Log>>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sflr just saw this, I agree. Probably leaning towards making the others concrete. I will make the changes soon
.iter() | ||
.cloned() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.iter() | |
.cloned() | |
.into_iter() |
we consume the receipt here, so no need to clone
DepositReceipt
withl op-alloy
's
Motivation
Closes #11496
Solution
Builds on top of @TropicalDog17 PR to add special handling for TypedReceipt::Deposit variants to prevent runtime panics when processing L2/Optimism deposit transactions.
PR Checklist