Skip to content

Getting error while deploying the mock contract in the lottery contract section #1695

Answered by othaime-en
DeadmanAbir asked this question in Q&A
Discussion options

You must be logged in to vote

You need to add the deploy-mock.js file to your deploy folder and rename it as 00-deploy-mocks.js
Also, rename the file deploy-raffle.js to 01-deploy-raffle.js

The command hardhat deploy only works if the deploy script/file is in the deploy folder and in your case, the file supposed to deploy the VRFCoordinatorV2Mock was not in the deploy folder therefore no VRFCoordinatorV2Mock contract was deployed.

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
4 replies
@DeadmanAbir
Comment options

@othaime-en
Comment options

@DeadmanAbir
Comment options

@alymurtazamemon
Comment options

Comment options

You must be logged in to vote
2 replies
@DeadmanAbir
Comment options

@krakxn
Comment options

Comment options

You must be logged in to vote
7 replies
@DeadmanAbir
Comment options

@krakxn
Comment options

@othaime-en
Comment options

@DeadmanAbir
Comment options

@othaime-en
Comment options

Answer selected by alymurtazamemon
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