简体   繁体   中英

Can we update solidity smart contract which is deployed in Hedera TestNet?

As of now I need to deploy new contract for every change in solidity. We loss all the previous data which is in old contract. https://docs.hedera.com/guides/docs/sdks/smart-contracts/update-a-smart-contract for reference

Since contracts are immutable, you'll need to create a proxy contract that retains the data between deploys.

You create a contract that points to the main one and that also exposes a function that lets you change which main one it points to. See Using the UUPS proxy pattern to upgrade smart contracts .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM