-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi, in your 01-deploy-raffle.js file add this line of code under your raffle variable, should look like this: const raffle = await deploy("Raffle", {
from: deployer,
args: args,
log: true,
waitConfirmations: waitBlockConfirmations,
})
await vrfCoordinatorV2Mock.addConsumer(subscriptionId, raffle.address);
|
Beta Was this translation helpful? Give feedback.
-
You can't simply add the line
Otherwise, it will fail later when you deploy the contact to the test network rather than on the local |
Beta Was this translation helpful? Give feedback.
-
Thanks for posting the question and for answering it! Strange that Patrick did not post anything about it in the repository. |
Beta Was this translation helpful? Give feedback.
Hi, in your 01-deploy-raffle.js file add this line of code under your raffle variable, should look like this: