-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat(cheatcodes): support both 4844/7594 formats in attachBlob
#13054
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
Conversation
| let sidecar_variant = if ccx.ecx.cfg.spec < SpecId::OSAKA { | ||
| sidecar.build_4844().map_err(|e| format!("{e}"))?.into() | ||
| } else { | ||
| sidecar.build_7594().map_err(|e| format!("{e}"))?.into() | ||
| }; | ||
| ccx.state.active_blob_sidecar = Some(sidecar_variant); |
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 propose to select implicitly the blob format based on the spec.
Is there a real use-case for explicit blob format selection ? i.e. use 4844 one after Osaka ?
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.
Is there a real use-case for explicit blob format selection ? i.e. use 4844 one after Osaka ?
there is not, this format is deprecated on protocol level after osaka
mattsse
left a comment
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.
nice and easy, tysm!
| let sidecar_variant = if ccx.ecx.cfg.spec < SpecId::OSAKA { | ||
| sidecar.build_4844().map_err(|e| format!("{e}"))?.into() | ||
| } else { | ||
| sidecar.build_7594().map_err(|e| format!("{e}"))?.into() | ||
| }; | ||
| ccx.state.active_blob_sidecar = Some(sidecar_variant); |
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.
Is there a real use-case for explicit blob format selection ? i.e. use 4844 one after Osaka ?
there is not, this format is deprecated on protocol level after osaka
Motivation
Close #12363
Solution
BlobTransactionSidecarVariantinattachBlobcheatcode support both 4844/7594 formatsPR Checklist