Cannot read properties of undefined (reading 'ethUsdPriceFeed') #297
-
code // function deployFunc() { // module.exports.default = deployFunc // module.exports = async (hre) => { module.exports = async ({ getNamedAccounts, deployments }) => {
} module.exports.tags = ["all", "fundMe"] ERROR=== Cannot read properties of undefined (reading 'ethUsdPriceFeed') |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
can you show the file helper-hardhat-config.js. It should look like this:
https://github.com/PatrickAlphaC/hardhat-fund-me-fcc/blob/main/helper-hardhat-config.js |
Beta Was this translation helpful? Give feedback.
-
This line: |
Beta Was this translation helpful? Give feedback.
This line:
ethUsdPriceFeedAddress = networkConfig[chainId]["ethUsdPriceFeed"];
should be
ethusdPriceFeedAddress = networkConfig[chainId]["ethUsdPriceFeed"];