Lesson 7: reusing "FundMe" at 0x344bABC478aCA638d1d0a9925e95e92Db480e7Bb #6096
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @tusharr1411 It is just hardhat framework specific. Whenever hardhat detect you are trying to deploy contract same to already deployed it will just give you that deployed one as there is no point deploying same thing over and over on sepolia or goerli. If you really want to deploy again same thing just remove |
Beta Was this translation helpful? Give feedback.
-
So it means hardhat saves the deployed contracts locally.So that's how we were interacting with MockV3Aggregator.sol in localhost network locally. That's cool... Thanks for your explation Patryk ! |
Beta Was this translation helpful? Give feedback.
Hello @tusharr1411
It is just hardhat framework specific. Whenever hardhat detect you are trying to deploy contract same to already deployed it will just give you that deployed one as there is no point deploying same thing over and over on sepolia or goerli. If you really want to deploy again same thing just remove
deployments
folder along withcache
andartifacts
folders and you will get what you want. In case you will even sligthly change contract code you want to deploy it will be deployed also to new address.