Lesson 7: question About DeployFundMe script #77
-
this is a script (DeployFundMe) running on anvil chain. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Could you rephrase this question? I'm not sure what you're asking?
|
Beta Was this translation helpful? Give feedback.
-
@Perso77 MockV3Aggregator mockPriceFeed = new MockV3Aggregator(
DECIMALS,
INITIAL_PRICE
); and after that, the FundMe fundMe = new FundMe(priceFeed); |
Beta Was this translation helpful? Give feedback.
@Perso77
DeployFundMe
script creates theHelperConfig
script contract which either gets the price feed address if the network is testnet, in the case of localhost such as Anvil it first create the mock contract and then return the price feed address;and after that, the
DeployFundMe
script deployed theFundMe
contract; due to that, you see two contracts deployed on the anvil.