Closed heitor-lassarote closed 12 hours ago
@heitor-lassarote pls add forge --version
output, looks like an older version as sources doesn't match crates/evm/core/src/backend/mod.rs:454
Also there's a good hint what happens: 2024-11-21T15:25:27.218837Z ERROR foundry_evm_core::fork::init: It looks like you're trying to fork from an older block with a non-archive node which is not supported. Please try to change your RPC url to an archive node if the issue persists.
nm, I see forge version now, that's quite old, you should run foundryup
and retest
Confirming forge doesn't panic with latest but prints message
Going to close for now, please reopen if still an issue. thank you
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (7bef9ca 2024-06-26T00:18:22.002685333Z)
What command(s) is the bug in?
forge script
Operating System
Linux
Describe the bug
After trying to deploy a pretty simple mock ERC-20 token to the Polygon Amoy testnet, I got this error, which the CLI asked me to report as a bug:
The script doesn't do much:
And the contract is as dumb as possible:
Note:
foundryup --version
returns an empty string, I was not able to find out its version.