Skip to content

chore: bump revm v38#14436

Merged
zerosnacks merged 14 commits intomasterfrom
rus/bump-revm-v38
Apr 24, 2026
Merged

chore: bump revm v38#14436
zerosnacks merged 14 commits intomasterfrom
rus/bump-revm-v38

Conversation

@0xrusowsky
Copy link
Copy Markdown
Contributor

this PR bumps to revm v38, together with tempo and OP bumps.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

decofe and others added 9 commits April 17, 2026 05:09
Patches revm to bluealloy/revm@a1a1824 and op-revm to
foundry-rs/op-revm@66388e6 for the InitialAndFloorGas handler change.
Patches reth-core to paradigmxyz/reth-core@6b12498 for the
Bytecode::new_analyzed unsafe change.

Adds gas_limit() and state_gas_used() to AnvilStorageProvider to
satisfy the updated PrecompileStorageProvider trait.

Co-authored-by: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d97c8-3033-770a-bd6c-714c2a8393d5
- Replace deprecated OpCode::new_unchecked with new_or_unknown
- Add gas_refunded field to PrecompileOutput struct literals
- Allow foundry-rs/op-revm and paradigmxyz/reth-core git sources in deny.toml

Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Co-Authored-By: grandizzy <38490174+grandizzy@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d97c8-3033-770a-bd6c-714c2a8393d5
Updates patch revisions to match tempo/tip1016 HEAD:
- revm: a1a1824 → ea8d1f5
- op-revm: 66388e6 → 780b812
- tempo: 2e6e9d1 → 4092dfe

Fixes CreateInputs::new reservoir parameter for the new revm.

Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Co-Authored-By: grandizzy <38490174+grandizzy@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d97c8-3033-770a-bd6c-714c2a8393d5
Tempo's [patch.crates-io] now includes all revm sub-crates, preventing
the invariant workflow's patch propagation from clobbering foundry's
patches.

Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Co-Authored-By: grandizzy <38490174+grandizzy@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d97c8-3033-770a-bd6c-714c2a8393d5
- revm 37.0.0 → 38.0.0 (crates.io release, no more git patches)
- revm-inspectors 0.38.1 → 0.39.0
- alloy-evm 0.32.0 → 0.33.1
- tempo crates rev f873f0e → c095527 (tip1016 head)
- foundry-fork-db, op-revm, foundry-rs/optimism bumped via branches
- fix OpCode::new_or_unknown → new_unchecked (API change in revm 38)
- add missing Evm::cfg_env impl (new trait method in alloy-evm 0.33.1)

Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@mablr mablr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

We just need to add op's monorepo to deny whitelist.

@0xrusowsky
Copy link
Copy Markdown
Contributor Author

0xrusowsky commented Apr 24, 2026

We just need to add op's monorepo to deny whitelist.

addressed in 9822526 (this PR)

@0xrusowsky 0xrusowsky requested a review from mablr April 24, 2026 07:42
@0xrusowsky 0xrusowsky marked this pull request as ready for review April 24, 2026 07:42
grandizzy
grandizzy previously approved these changes Apr 24, 2026
mablr
mablr previously approved these changes Apr 24, 2026
Copy link
Copy Markdown
Collaborator

@mablr mablr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Comment thread Cargo.toml Outdated
Comment thread Cargo.toml
Comment on lines -625 to -626
[workspace.metadata.cargo-shear]
ignored = ["idna_adapter", "cast", "chisel", "forge", "alloy-contract"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets keep this, needed for cargo-shear

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in 103c474 (this PR)

Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
@zerosnacks zerosnacks merged commit ee3c8d8 into master Apr 24, 2026
25 of 32 checks passed
@zerosnacks zerosnacks deleted the rus/bump-revm-v38 branch April 24, 2026 09:06
@github-project-automation github-project-automation Bot moved this to Done in Foundry Apr 24, 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.

6 participants