Closed
Description
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 0.2.0 (0a5b22f 2024-05-21T10:32:10.544355000Z)
What command(s) is the bug in?
forge script
Operating System
Linux
Describe the bug
When I try to deploy on Ethereum Mainnet like this:
forge script script/deploy/Deploy.V2.s.sol \
--rpc-url $(MAINNET_RPC) \
--sender $(MAINNET_OWNER) \
--broadcast \
--verify \
-i 1 \
-vvvv \
--via-ir \
--optimize
I get the following error Failed to get EIP-1559 fees
and I have to use --legacy
to fix this.
But --legacy
gas estimation is not precise enough to ensure that all txs are going to be included.