Skip to content

alloy-op-evm: drop tx gas limit cap workaround - #22136

Open
claude[bot] wants to merge 1 commit into
developfrom
claude/alloy-op-evm-todo-21583
Open

alloy-op-evm: drop tx gas limit cap workaround#22136
claude[bot] wants to merge 1 commit into
developfrom
claude/alloy-op-evm-todo-21583

Conversation

@claude

@claude claude Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Requested by Sebastian Stammler · Slack thread

Summary

Follow-up to #22130. Resolves the TODO(21583) left in the shared OP EVM env builder.

Before: OP EVM env construction force-set cfg_env.tx_gas_limit_cap to the EIP-7825 limit for Osaka-based forks, as a workaround while waiting to vendor a reth release containing paradigmxyz/reth#25612 (eth_estimateGas failing on OP chains post-EIP-7825).

After: the workaround is removed. The pinned reth revision (f2eecc65) contains reth#25612, so the estimate path reads the effective cap via CfgEnv::tx_gas_limit_cap(), and revm-context 41's effective accessor already yields the EIP-7825 limit for Osaka+ specs (and u64::MAX before), which is exactly what the override produced. revm's own validation and handler paths also consume the effective accessor, so behavior is unchanged everywhere.

The conformance test is tightened: it now asserts the raw tx_gas_limit_cap field stays None for every fork in the chronology (no override reintroduced) while the effective cap still switches to the EIP-7825 limit exactly at Osaka-based forks. The op-reth eth_estimateGas EIP-7825/Karst regression test is kept, per the TODO's instruction.

Fixes #21583


Generated by Claude Code

@claude
claude Bot requested review from a team as code owners July 30, 2026 21:00
The vendored reth pin (f2eecc65) contains paradigmxyz/reth#25612, which
makes the estimate path use the effective tx gas cap, and revm's
effective cap already defaults to the EIP-7825 limit from Osaka onward.
Stop overriding the raw config field and tighten the conformance test to
assert the raw field stays unset while the effective cap still switches
to the EIP-7825 limit for Osaka-based forks.

Co-Authored-By: Claude
Co-authored-by: Sebastian Stammler <seb@oplabs.co>
@claude
claude Bot force-pushed the claude/alloy-op-evm-todo-21583 branch from ebc06f4 to a2cf486 Compare July 31, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove OP EIP-7825 estimateGas workaround after upstream reth fix

1 participant