-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arbitrum Goerli forge script - intrinsic gas too low #3487
Comments
Also, just tried a simple forge create and that works successfully |
Ok I managed to get the script working... I had to pass The estimated gas usage with simulation was 1,859,794 Without simulation, the gas limit was set to ~20M while the gas used was ~14M So the gas estimation is off. Does forge estimate gas with the local EVM (rEVM?)? Does it call out to the provider? |
@joshieDo do you remember if there is an issue with the arbitrum gas calculation logic? this has been increasingly common |
It should be calling out to the provider |
Lines 165 to 168 in fb4a836
Yeah that explains it. We only have one Arbitrum testnet, we need to add
|
this fixed the same issue i was having with arbitrum mainnet |
|
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (28312e7 2022-10-13T00:10:09.318425Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
I have a simple script to deploy a contract. This script executes successfully on Goerli and Arbitrum Rinkeby, but it fails on Arbitrum Goerli with
(code: -32000, message: intrinsic gas too low, data: None)
I have tried Alchemy RPC + public RPC (https://goerli-rollup.arbitrum.io/rpc/)
Very weird that Arbitrum Rinkeby works, but Arbitrum Goerli does not. They both run Arbitrum Nitro ... perhaps Goerli is running a newer version since Rinkeby is deprecated...?
Also, I tried increasing the gas price and gas limit by many multiples, but that didn't change anything. And I have more than enough ArbGoerli ETH in my EOA.
The transaction requests are identical between rinkeby and goerli, aside from the nonce, but I also tried using a fresh account with nonce = 0 on goerli and that also didn't change anything:
Full output:
Script:
The text was updated successfully, but these errors were encountered: