Skip to content

About 00-deploy vs 01-deploy #2018

Answered by othaime-en
TimeKeyRoll asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @MasterofBlockchain to be clear, 00-deploy is not for deploying our contract locally, it is for deploying mocks locally. We also use 01-deploy to deploy locally our contract. What the if statement above effectively says, is that if we are on a local chain, we want to deploy the mocks - as so we use 00-deploy to deploy these mocks. but if we are on a testnet, we use the address ethUsdAddress that we put in our helper-hardhat file as the address for the priceFeed

Replies: 2 comments 6 replies

Comment options

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

@othaime-en
Comment options

@krakxn
Comment options

@othaime-en
Comment options

@TimeKeyRoll
Comment options

Answer selected by TimeKeyRoll
Comment options

You must be logged in to vote
1 reply
@TimeKeyRoll
Comment options

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