Skip to content

lesoon- 7 mocks- deploy #1691

Answered by othaime-en
TimeKeyRoll asked this question in Q&A
Aug 11, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TimeKeyRoll
Comment options

@othaime-en
Comment options

Answer selected by TimeKeyRoll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants