I want to interact with the contracts in the mainnet, i used hardhat fork to fork the arbitrum mainnet, forking is done but after that my contracts getting deployed according to the script and the command is completely executed.
Now deploying the contract is done but i want to test a script which is in other file, when i try to run it, it gives call revert exception
.
I say forking is working because i tried to put the same test script in the deployment scripts it worked!
May be i am wrong,I think its because the fork that i made and deployed my contracts to has finished and exited and when i try to interact with it after the that deployment script is done, its giving this error. So i thought if we separate the hardhat fork into separate terminal like npx hardhat node --localhost
it might work where i can run the test scripts since the blockchain state will be there.
How to get the hardhat fork into separate terminal like npx hardhat node--localhost
?
Here is screenshot of test not working
If it doesn't solve this problem please suggest a solution.