Lesson 9 (15:19:57): cannot find artifact #1063
-
My repo: https://github.com/dgbweb3/hardhat-smartcontract-lottery At the timestamp(15:19:57) I run: Then I return this error: Error: ERROR processing /home/dgbweb3/hh-fcc/hardhat-smartcontract-lottery/deploy/00-deploy-mocks.js: 00-deploy.mocks.js const { developmentChains } = require("../helper-hardhat-config")
const BASE_FEE = ethers.utils.parseEther("0.25") //0.25 is the LINK premium per request
const GAS_PRICE_LINK = 1e9 //calculated value
module.exports = async function ({ getNamedAccounts, deployments }) {
const { deploy, log } = deployments
const { deployer } = await getNamedAccounts()
const args = [BASE_FEE, GAS_PRICE_LINK]
if (developmentChains.includes(network.name)) {
log("Local Network Detected! Deploying mocks...")
await deploy("VRFCoordinatorV2Mock", {
from: deployer,
log: true,
args: args,
})
log("Mocks Deployed!")
log("------------------------------")
}
}
module.exports.tags = ["all", "mocks"] I also noticed I am compiling a "cache" folder but not an "artifacts" folder... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 27 replies
-
Try to clean first |
Beta Was this translation helpful? Give feedback.
-
The compiled artifacts will be saved in the artifacts/ directory by default, or whatever your configured artifacts path is. Look at the paths configuration section to learn how to change it. This directory will be created if it doesn't exist. Let me know if this helps. |
Beta Was this translation helpful? Give feedback.
-
@dgbweb3 Remove artifacts and cache folders if exist and recompile your contracts. |
Beta Was this translation helpful? Give feedback.
@dgbweb3 Remove artifacts and cache folders if exist and recompile your contracts.