Skip to content

feat(op-acceptance-tests): add EIP-7825 tx gas limit cap test#20070

Merged
joshklop merged 1 commit intodevelopfrom
joshklop/osaka-7825
Apr 16, 2026
Merged

feat(op-acceptance-tests): add EIP-7825 tx gas limit cap test#20070
joshklop merged 1 commit intodevelopfrom
joshklop/osaka-7825

Conversation

@joshklop
Copy link
Copy Markdown
Contributor

@joshklop joshklop commented Apr 14, 2026

Add TestEIP7825TxGasLimitCap to verify the 2^24 transaction gas limit cap is enforced after Karst. Uses txplan to send real transactions since EIP-7825 is a tx validity rule not enforced by eth_call or eth_simulateV1. Tests both pre-karst (gas above cap allowed) and post-karst (gas above cap rejected, gas at cap succeeds).

Also adds WithKarstAtGenesis deployer option and fixes the tx manager gas estimator to set callMsg.Gas to params.MaxTxGas before calling EstimateGas, which is required post-Osaka.

Stacked on #20069


For reference https://github.com/ethereum-optimism/design-docs/blob/main/protocol/fusaka-on-l2.md

@joshklop joshklop requested a review from a team as a code owner April 14, 2026 18:40
@joshklop joshklop force-pushed the joshklop/osaka-7825 branch from 7a36732 to 8464b2e Compare April 14, 2026 18:48
@joshklop joshklop force-pushed the joshklop/osaka-7825 branch from 8464b2e to 5643266 Compare April 14, 2026 20:21
@joshklop joshklop force-pushed the joshklop/osaka-7883 branch 2 times, most recently from 2f3ea9b to fa334e7 Compare April 14, 2026 21:29
@joshklop joshklop force-pushed the joshklop/osaka-7825 branch from 5643266 to 912c668 Compare April 14, 2026 21:29
Comment thread op-acceptance-tests/tests/osaka_on_l2_test.go
@joshklop joshklop force-pushed the joshklop/osaka-7825 branch from 912c668 to dce1b4e Compare April 15, 2026 20:06
@joshklop joshklop force-pushed the joshklop/osaka-7883 branch from fa334e7 to 3f133f2 Compare April 15, 2026 20:06
@joshklop joshklop force-pushed the joshklop/osaka-7825 branch from dce1b4e to c3ade22 Compare April 15, 2026 21:17
@joshklop joshklop force-pushed the joshklop/osaka-7883 branch from 3f133f2 to 4f8a52a Compare April 15, 2026 21:17
Base automatically changed from joshklop/osaka-7883 to develop April 15, 2026 22:22
Add TestEIP7825TxGasLimitCap to verify the 2^24 transaction gas limit
cap is enforced after Karst. Uses txplan to send real transactions since
EIP-7825 is a tx validity rule not enforced by eth_call or
eth_simulateV1. Tests both pre-karst (gas above cap allowed) and
post-karst (gas above cap rejected, gas at cap succeeds).

Also adds WithKarstAtGenesis deployer option and fixes the tx manager
gas estimator to set callMsg.Gas to params.MaxTxGas before calling
EstimateGas, which is required post-Osaka.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joshklop joshklop force-pushed the joshklop/osaka-7825 branch from c3ade22 to 20c7144 Compare April 16, 2026 01:44
@joshklop joshklop enabled auto-merge April 16, 2026 01:44
@joshklop joshklop added this pull request to the merge queue Apr 16, 2026
Merged via the queue into develop with commit 7a45d7d Apr 16, 2026
108 checks passed
@joshklop joshklop deleted the joshklop/osaka-7825 branch April 16, 2026 02:36
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.

3 participants