Skip to content

Error: No Contract deployed with name vrfCoordinatorV2Mock #5687

Answered by alfaqi
NakeshTewari asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 2 replies

Comment options

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

Answer selected by NakeshTewari
Comment options

You must be logged in to vote
1 reply
@l1135677068
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
4 participants