level 7: Clarify the variation in args passed in deploy script in hardhat fundme session. #6624
sreeraj003
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hardhat FundMe
In script 00-deploy-mocks we are passing DECIMALS and INITIAL_AMOUNT as args since mockAggregatorInterface constructor defined so.
await deploy("MockV3Aggregator", { contract: "MockV3Aggregator", from: deployer, log: true, args: [DECIMALS, INITIAL_ANSWER] })
But in deploy scrip 01-deploy-fund-me.js why we are passing ethUsdPriceFeedAddress instead.
const fundMe = await deploy("FundMe", { from: deployer, args: [ethUsdPriceFeedAddress], log: true })
Beta Was this translation helpful? Give feedback.
All reactions