Skip to content

Conversation

@mablr
Copy link
Contributor

@mablr mablr commented Jan 11, 2026

Motivation

Close #12363

Solution

  • Use BlobTransactionSidecarVariant in attachBlob cheatcode support both 4844/7594 formats

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Comment on lines +231 to +236
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);
Copy link
Contributor Author

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 ?

Copy link
Member

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

@mablr mablr marked this pull request as ready for review January 11, 2026 21:24
Copy link
Member

@mattsse mattsse left a 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!

Comment on lines +231 to +236
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);
Copy link
Member

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 mattsse enabled auto-merge January 12, 2026 19:13
@mattsse mattsse added this pull request to the merge queue Jan 12, 2026
Merged via the queue into foundry-rs:master with commit 46f2d89 Jan 12, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: vm.attachBlob will probably stop working

3 participants