-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: add support for 7594 blobs to anvil #12238
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?
feat: add support for 7594 blobs to anvil #12238
Conversation
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.
cool
some nits, suggestions
// Convert BlobTransactionSidecarVariant to BlobTransactionSidecar for TxEnvelope | ||
let converted_tx = match tx { | ||
TxEip4844Variant::TxEip4844(tx) => TxEip4844Variant::TxEip4844(tx), |
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.
instead of converting, we should also update the return type here
which is
pub struct Transaction<T = TxEnvelope> {
let blobs = match &sidecar.sidecar { | ||
BlobTransactionSidecarVariant::Eip4844(sidecar) => &sidecar.blobs, | ||
BlobTransactionSidecarVariant::Eip7594(sidecar) => &sidecar.blobs, | ||
}; | ||
return Ok(Some(blobs.clone())); | ||
} |
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.
could you upstream this as
fn blobs
and
fn into_blobs
Self::Legacy(tx) => TxEnvelope::from(tx.clone()).encode_2718_len(), | ||
Self::EIP2930(tx) => TxEnvelope::from(tx.clone()).encode_2718_len(), | ||
Self::EIP1559(tx) => TxEnvelope::from(tx.clone()).encode_2718_len(), |
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.
I think even those from calls here are redundant,
if you want, please submit this separately
Motivation
closes #12222
Solution
PR Checklist