forge script: "Could not instantiate forked environment with fork url" --rpc-url to local anvil chain #7952
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 (54d8510 2024-05-20T00:19:01.949744889Z)
What command(s) is the bug in?
forge script
Operating System
Windows
Describe the bug
fresh install on new(to me) setup. using WSL ubuntu. do foundryup, everything is good. start an anvil local chain, it spins up nicely.
then I go to run my deploy script with
forge script script/Deploy.s.sol --broadcast --fork-url http://localhost:8545
get strange error I have never seen before when running this same script against local anvil on a different computer I have.
I am not sure what an "archive node" is, and didn't see any mention of it on https://book.getfoundry.sh/reference/anvil/
tried explicitly passing various
--fork-block-number
, which didn't really change much. tried googling, and looked through the issues here. I see nothing. tried installing an earlier commit of foundry withfoundryup -C 63fff3510408b552f11efb8196f48cfe6c1da664
and got same results. tried logging within myDeploy.s.sol
, but none of the logs were ever hit, which leads me to believe it is happening at some earlier layer of code I didn't write. perhaps something in here?I'm happy to provide more information if needed.
The text was updated successfully, but these errors were encountered: