Skip to content

Lesson 9: Error: No Contract deployed with name: VRFCoordinatorV2_5Mock #6807

Answered by magicsd
LouieCads asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! I see different conditions:

  • when you deploy the contract you go with developmentChains.includes(network.name)
  • when you get the contract you go with chainId == 31337

I'd suggest to equalize this stuff (for example check chain ID in both places) and make sure the networks correspond: sepolia, hardhat, localhost.

Also you may specify the network while running a script

yarn hardhat deploy --tags mocks --network hardhat

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LouieCads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants