Error: No Contract deployed with name vrfCoordinatorV2Mock #5687
-
Hello All, Error: ERROR processing /home/nakesh/folder/hardhat-smartcontract-lottery-fcc/deploy/01-deploy-raffle.js:
Error: No Contract deployed with name vrfCoordinatorV2Mock
at Object.getContract (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:447:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node: internal/process/task_queues:65:3)
at listOnTimeout (node: internal/timers:528:9)
at processTimers (node:internal/timers:502:7)
at Object.module.exports [as func] (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/deploy/01-deploy-raffle.js:14:33)
at DeploymentsManager.executeDeployScripts (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1222:22)
at DeploymentsManager.runDeploy (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1055:5)
at SimpleTaskDefinition.action (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat-deploy/src/index.ts:438:5)
at Environment._runTaskDefinition (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat/src/internal/core/runtime-environment.ts:330:14)
at DeploymentsManager.executeDeployScripts (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1225:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node:internal/process/task_queues:65:3)
at listOnTimeout (node:internal/timers:528:9)
at processTimers (node:internal/timers:502:7)
at DeploymentsManager.runDeploy (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1055:5)
at SimpleTaskDefinition.action (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat-deploy/src/index.ts:438:5)
at Environment._runTaskDefinition (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat/src/internal/core/runtime-environment.ts:330:14)
at Environment.run (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat/src/internal/core/runtime-environment.ts:163:14)
at SimpleTaskDefinition.action (/home/nakesh/folder/hardhat-smartcontract-lottery-fcc/node_modules/hardhat-deploy/src/index.ts:584:32)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. There is my repo link: https://github.com/NakeshTewari/Hardhat-smartcontract-lottery |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
the problem is Capitalization with and make sure that all contracts are matched up with Capitalization |
Beta Was this translation helpful? Give feedback.
-
I am using still getting this error. |
Beta Was this translation helpful? Give feedback.
the problem is Capitalization with
VRFCoordinatorV2Mock
const vrfCoordinatorV2Mock=await ethers.getContract("VRFCoordinatorV2Mock");
instead of
const vrfCoordinatorV2Mock=await ethers.getContract("vrfCoordinatorV2Mock");
and make sure that all contracts are matched up with Capitalization