Lesson 10: No contract deployed with name Raffle while running scripts #827
-
I have copied the mockOffChain.js code snippet from Patrick's github and when I deploy it, it runs perfectly. But when I try to run the scripts through, yarn hardhat run scripts/mockOffChain.js I shows me the following error:
The code snippet causing this error is: async function mockKeepers() {
console.log("Heyy!!")
const raffle = await ethers.getContract("Raffle") How do I mitigate this error? |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Jul 8, 2022
Replies: 2 comments
-
@harshuo2 make sure the node is running on another terminal. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alymurtazamemon
-
Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@harshuo2 make sure the node is running on another terminal.