Skip to content

Add --enable-tx-gas-limit CLI flag for EIP-7825 support#13307

Merged
onbjerg merged 1 commit intofoundry-rs:masterfrom
DanielGuupta:enable-tx-gas-limit
Feb 4, 2026
Merged

Add --enable-tx-gas-limit CLI flag for EIP-7825 support#13307
onbjerg merged 1 commit intofoundry-rs:masterfrom
DanielGuupta:enable-tx-gas-limit

Conversation

@DanielGuupta
Copy link
Contributor

Motivation

I was looking at anvil's gas limit options and noticed that NodeConfig has an enable_tx_gas_limit field for EIP-7825 (Osaka hardfork), and it's actually being used in the code. Forge/cast already have this flag exposed in their CLI, but anvil was missing it - so users couldn't actually enable this feature.

Solution

dded the --enable-tx-gas-limit flag (with --tx-gas-limit alias) and wired it through into_node_config(). Also added a test for the CLI parsing.

PR Checklist

  • [ ✅] Added Tests
  • Added Documentation
  • Breaking changes

@onbjerg onbjerg merged commit cbb8a20 into foundry-rs:master Feb 4, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Feb 4, 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.

2 participants