Error Running mockOffchain.js #2298
-
I am running the script mockOffchain.js after copying it from Patrick's repo, I have gone through other discussions and have added localhost chainId in hardhat.config, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@ashrth : First you need to enter the raffle , Then you can mock Off chain! and make Sure you run a hardhat node first. First run : Then run : It will resolve your issue! |
Beta Was this translation helpful? Give feedback.
@ashrth : First you need to enter the raffle , Then you can mock Off chain! and make Sure you run a hardhat node first.
First run :
scripts/enter.js --network localhost
Then run :
scripts/mockOffChain.js --network localhost
It will resolve your issue!