Lesson 7 - The 'address' parameter of task 'verify:verify' expects a value, but none was passed. #3620
-
Hi,
const fundMe = deploy("FundMe", {
from: deployer,
args: [ethUsdPriceFeedAddress], //price feed
log: true,
waitConfirmation: network.config.blockConfirmations || 1,
});
log(`deployed to: ${fundMe.address}`);
if (
!developmentChains.includes(network.name) &&
process.env.ETHERSCAN_API_KEY
) {
await verify(fundMe.address, [ethUsdPriceFeedAddress]);
}
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@zhikri : Show me your |
Beta Was this translation helpful? Give feedback.
-
@zhikri add const fundMe = await deploy("FundMe", {
from: deployer,
args: [ethUsdPriceFeedAddress], //price feed
log: true,
waitConfirmation: network.config.blockConfirmations || 1,
}); |
Beta Was this translation helpful? Give feedback.
-
I am facing same problem const verify = async (contractAddress, args) => { module.exports = { verify }" and 01-deploy.js is "const { getNamedAccounts, deployments } = require("hardhat"); module.exports = async ({getNamedAccounts, deployments}) => {
} module.exports.tags = ["all","fundme"]" and here is my error "HardhatError: HH306: The 'address' parameter of task 'verify:etherscan' expects a value, but none was passed." |
Beta Was this translation helpful? Give feedback.
@zhikri add
await
before deploy function