Lesson 9: cannot find artifact "vrfCoordinatorV2" #5222
-
Hi, I cleaned my cache and deleted my artifacts but the problem still persisting. Raffle: pragma solidity ^0.8.7; error Raffle_notEnoughETHEntered(); /** @title : Raffle contract
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; contract Raffle is VRFConsumerBaseV2, KeeperCompatibleInterface {
} pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/mocks/VRFCoordinatorV2Mock.sol";` my 00-mock: const BASE_FEE = ethers.utils.parseEther("0.25") module.exports = async function ({ getNamedAccounts, deployments }) {
} `const { getNamedAccounts, deployments, network, getChainId } = require("hardhat") const Fund_Amount = ethers.utils.parseEther("30") const Fund_Amount = ethers.utils.parseEther("30") module.exports = async function ({ getNamedAccounts, deployments }) {
} my hardhat.config: //const SEPOLIA_URL = process.env.SEPOLIA_URL /** @type import('hardhat/config').HardhatUserConfig */
} `const { ethers } = require("hardhat") const networkConfig = {
} const developmentChains = ["hardhat", "localhost"] module.exports = { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello @parishill25 Just try removing whole |
Beta Was this translation helpful? Give feedback.
Hello @parishill25
Just try removing whole
artifacts
andcache
folders then run compile and deploy