Skip to content

fix(cli): add Etherlink Shadownet to has_different_gas_calc#13430

Open
gakonst wants to merge 1 commit intomasterfrom
georgen/fix-etherlink-shadownet-gas
Open

fix(cli): add Etherlink Shadownet to has_different_gas_calc#13430
gakonst wants to merge 1 commit intomasterfrom
georgen/fix-etherlink-shadownet-gas

Conversation

@gakonst
Copy link
Member

@gakonst gakonst commented Feb 13, 2026

Summary

Add Etherlink Shadownet (chain ID 127823) to has_different_gas_calc so forge script --broadcast re-estimates gas via eth_estimateGas on this chain.

Motivation

Etherlink uses a non-standard gas model with inclusion fees (~600k gas on top of EVM execution gas). Without RPC-based gas estimation, forge script sends transactions with gas limits based on local EVM simulation only, which the sequencer rejects.

Etherlink Mainnet (42793) and Ghostnet Testnet (128123) are already handled via NamedChain, but Shadownet (127823) is not yet in alloy-chains, so we match the raw chain ID.

Closes #13425

Changes

  • crates/cli/src/utils/cmd.rs: add chain ID 127823 check before the NamedChain match

Add chain ID 127823 (Etherlink Shadownet Testnet) to the
has_different_gas_calc function so forge script --broadcast
re-estimates gas via eth_estimateGas on this chain.

The NamedChain variant does not exist in alloy-chains yet, so
we match the raw chain ID directly.

Closes #13425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

forge script --broadcast fails on Etherlink Shadownet due to insufficient gas estimation

1 participant