lesoon- 7 mocks- deploy #1691
-
Hi! I am unable to understand what's benifit of mentioning |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @MasterofBlockchain. If you can remember, in our MockV3Aggregator.sol file ( Now to answer your question, the Don't worry too much about what is happening here and what it means at the moment. Give it time, you'll gradually understand as you advance. The only thing you need to know in this section is that we are using a predefined value of 8 for the |
Beta Was this translation helpful? Give feedback.
Hello @MasterofBlockchain.
Quick refresher, as you know, Mocks allow us to deploy a minimal version of a contract if it does not exist on a chain e.g. the hardhat network. And since our hardhat network doesn't have the AggregatorV3interface contract that we need to calculate the price of ETH in USD, we deploy a minimal version of it locally in our hardhat network through our MockV3Aggregator file.
If you can remember, in our MockV3Aggregator.sol file (
./contracts/mocks/MockV3Aggregator.sol
), we imported this mock from our local@chainlink/contracts
module. However if look at this Mock that we imported (You can go through it in the github repo by chainlink), the constructor function needs…