Skip to content

LEC9-Error: No Contract deployed with name VRFCoordinatorV2Mock.sol #2610

Answered by RoboCrypter
ippy1997 asked this question in Q&A
Discussion options

You must be logged in to vote

@ippy1997 : Change the following line of code in your 01-deploy-raffle.js file :

From this : const VRFCoordinatorV2Mock = await ethers.getContract("VRFCoordinatorV2Mock.sol")

To this : const VRFCoordinatorV2Mock = await ethers.getContract("VRFCoordinatorV2Mock")

  • Contract name in getContract should be VRFCoordinatorV2Mock

Let me know, If it resolves your issue!

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@ippy1997
Comment options

@RoboCrypter
Comment options

@ippy1997
Comment options

@RoboCrypter
Comment options

@ippy1997
Comment options

Answer selected by ippy1997
Comment options

You must be logged in to vote
1 reply
@ippy1997
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants