Skip to content

Lesson 9: Error: cannot find artifact "VRFCoordinatorV2Mock" #1444

Answered by iangechuki
Sugunaramkumar asked this question in Q&A
Discussion options

You must be logged in to vote

In your contracts folder create a folder named test.In the test folder create a file named VRFCoordinatorV2Mock.sol.Inside this file add this:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@chainlink/contracts/src/v0.8/mocks/VRFCoordinatorV2Mock.sol" ;

Run yarn hardhat deploy .This is what you are missing.Also next time put the .history file in .gitignore.It can take you a very long time to push a project to github

Replies: 1 comment 7 replies

Comment options

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

@Sugunaramkumar
Comment options

@iangechuki
Comment options

@Sugunaramkumar
Comment options

@csmattjohnston
Comment options

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