Arbitrum Sepolia - "intrinsic gas too low" error while running "forge script" #6243
Closed
2 tasks done
Labels
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (059aa45 2023-11-07T08:13:53.055005635Z)
What command(s) is the bug in?
forge script
Operating System
Linux
Describe the bug
When running
forge script
on the new Arbitrum Sepolia Testnet (chain ID:421614
) the following error is thrown:(code: -32000, message: intrinsic gas too low, data: None)
My EOA has ample ETH balance and I've tried running the script with a higher gas limit (ex:
24000000
), but it still fails.This seems similar to a previous issue for Arbitrum Goerli: #3487
The temporary fix in that thread was to do the following:
Passing
--skip-simulation
worked and the transactions went through, but it seems that the broadcast information is incomplete and does not contain information such as "contractName" and "arguments". Transactions that should have a type ofCREATE
now have a type ofCALL
instead.Example broadcast JSON snippet:
vs. what it should look like:
This is an issue since my scripts rely on this broadcast information to retrieve addresses of recently deployed contracts.
Probable Cause
The problem in the previous issue was related to the new Arbitrum testnet not being included in these functions:
https://github.com/foundry-rs/foundry/blob/35b450054e59cb7c5026be433a98fbd5cbfda94c/crates/cli/src/utils/cmd.rs#L170C82-L170C96
foundry/crates/cli/src/utils/cmd.rs
Line 178 in 35b4500
Arbitrum Sepolia likely needs to be added there as well.
The text was updated successfully, but these errors were encountered: