Lesson 9 Errors #5639
-
I finished writing my scripts and I am trying yarn hardhat deploy. Whenever I try that command I get this error. It directs me to my 00-deploy-mocks.js which is below. Any ideas? Here's my GitHub repo. https://github.com/alex81983/smart-contract-lottery Error: ERROR processing skip func of /html-fund-me-fcc/hardhat-smartcontract-lottery-fcc/deploy/00-deploy-mocks.js: const { developmentChains } = require("../helper-hardhat-config") 00-deploy-mocks.js const BASE_FEE = ethers.utils.parseEther("0.25") // 0.25 is the premium. It cost 0.25 LINK per request module.exports = async function({getNamedAccounts, deployments}){ if (developmentChains.includes(network.name)){ module.exports.tags = ["all", "mocks"] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@alex81983 You didn't import helper-hardhat-config correctly it is in your current directory, not outside. change this: |
Beta Was this translation helpful? Give feedback.
-
@alex81983 I think you do not have helper config file in your project but you are importing it here
const { developmentChains } = require("../helper-hardhat-config") Make sure to create it, you can view the content from the repo. And also I think you forgot the env pledge! For you information, now these keys are considered as compromised you should delete those and create new ones. |
Beta Was this translation helpful? Give feedback.
@alex81983 I think you do not have helper config file in your project but you are importing it here
00-deploy-mocks.js
Make sure to create it, you can view the content from the repo.
And also I think you forgot the env pledge! For you information, now these keys are considered as compromised you should delete those and create new ones.