Contract verification fails using forge script
with recent version of forge.
#7702
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 (63072be 2024-04-18T00:17:28.746005000Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
The following command, run on the default foundry template (forge init) results in the contract being deployed and then subsequently, the verification failing with the following error:
It also fails on optimism (so I think it affects all chains, although it is possible it might only affect op-stack chains).
You will need to add the following to your foundry.toml
I then downgraded to this version of foundry from two weeks ago and the deployment + verification works fine. Note that the eip1559 fix wasn't implemented by this time, so make sure you account for that or you will tip 3gwei.
https://github.com/foundry-rs/foundry/releases/tag/nightly-f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9
The text was updated successfully, but these errors were encountered: