can someone tell me what i am doing wrong !! #5177
-
let ethUsdPriceFeedAddress
if (chainId == 31337) {
const ethUsdAggregator = await deployments.get("MockV3Aggregator")
ethUsdPriceFeedAddress = ethUsdAggregator.address
} else {
ethUsdPriceFeedAddress = networkConfig[chainId]["ethUsdPriceFeed"]
}
log("----------------------------------------------------")
log("Deploying FundMe and waiting for confirmations...")
const fundMe = await deploy("FundMe", {
from: deployer,
args: [ethUsdPriceFeedAddress],
log: true,
// we need to wait if on a live network so we can verify properly
waitConfirmations: network.config.blockConfirmations || 1,
})
log(`FundMe deployed at ${fundMe.address}`) |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Mar 28, 2023
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@devkumar4 Check this line ethUsdPriceFeedAddress = networkConfig[chainId]["ethUsdPriceFeed"] Either |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@devkumar4 Check this line
Either
ethUsdPriceFeed
spelling could be wrong or herechainId
is undefined. Make sure both of these things.