-
Currently on lesson 6. I'm confused about smart contracts once they've been deployed. Am I correct to assume that deploying multiple times on brownie will only "update" the original deployment (1st deploy)? or will this create duplicates? Is this a big issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @davedev83 when you deploy to a local blockchain (ganache) , each time you deploy you are creating a new one, but is not persistent, once the process is finished the contract disappears. Remember ganache creates a local blockchain. In the other hand when you use the same blockchain like ganache-ui you can take them as duplicates. But if you are deploying to a live net or a testnet, you will always create a new contract with is own address, in code they could be the same (duplicates) but they will have different addresses. |
Beta Was this translation helpful? Give feedback.
Hello @davedev83 when you deploy to a local blockchain (ganache) , each time you deploy you are creating a new one, but is not persistent, once the process is finished the contract disappears. Remember ganache creates a local blockchain. In the other hand when you use the same blockchain like ganache-ui you can take them as duplicates.
But if you are deploying to a live net or a testnet, you will always create a new contract with is own address, in code they could be the same (duplicates) but they will have different addresses.