Closed AnthonyHarvey8867 closed 5 months ago
isn't the command for running the script file should be forge script src/SimpleStorage.s.sol ??? or if you've name your folder and file to be scr and SimpleStorage respectively you shouldn't face any problem since I don't see any problem with the code!
as mentioned above, the command you should probably use is the following
forge script script/DeploySimpleStorage.s.sol
Hello buddy ! Here is the right script to deploy the contract on the local chain :
forge script script/DeploySimpleStorage.s.sol --rpc-url $RPC_URL --broadcast --private-key $PRIVATE_KEY
Hope it helps :)
how do i get the fork url that I am constantly getting requested to have
The file name has to be SimpleStorage.s.sol
Hey guys, I'm having difficulties with the last part of video 1; deploying "SimpleStorage.sol" in foundry; where there is a script to deploy the smart contract. here is the script from the first video of the course:
then when I run "forge script scr/SimpleStorage.sol" in the command line. I get the following error:
I have tried the command with other test files but the issue still persists!
anyone has any ideas as to why it keeps referring to "run() " function while it has been defined within the script!