Skip to content

Lesson:7 yarn hardhat deploy returns nothing to compile #911

Answered by alymurtazamemon
Maakai123 asked this question in Q&A
Discussion options

You must be logged in to vote

@Maakai123 There are a couple of issues here: resolve all of these.

  1. Make sure the helper-hardhat-config.js is at the root level.
const { networkConfig } = require("../helper-hardhat-config")
const { developmentChains } = require("../../helper-hardhat-config")

here the same file comes from different paths, verify it.

  1. Update the else statement
- const ethUsdPriceFeedAddress = networkConfig[chainId]["ethUsdPriceFeed"]
+ ethUsdPriceFeedAddress = networkConfig[chainId]["ethUsdPriceFeed"]   
  1. Add the waitConfirmation.
const fundMe = await deploy("FundMe", {
        from: deployer,
        args: [ethUsdPriceFeedAddress], // put price feed address
        log: true,
        waitConfirmations: 

Replies: 1 comment 29 replies

Comment options

You must be logged in to vote
29 replies
@Maakai123
Comment options

@alymurtazamemon
Comment options

@alymurtazamemon
Comment options

@Maakai123
Comment options

@Maakai123
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
2 participants