nebulasio / wiki

This repository is out of date, please check the new wiki:
http://wiki.nebulas.io/en/latest/
GNU General Public License v3.0
422 stars 153 forks source link

How to upgrade or change my smart contract code #74

Closed act262 closed 6 years ago

act262 commented 6 years ago

Firstly deploy my code successfully, and then I need improve my code, so how can I change my smart contract?

fbzhong commented 6 years ago

Hi Act262,

In blockchain system, all data/state are immutable. That means we can't change data after on chain.

So if you want to update the smart contract code, you have to deploy the latest code and get a new contract address.

And we are working on the Nebulas Force, which provide upgradability to Nebulas. In that circumstances, developer could upgrade, not overwrite, their smart contract.

Wish that would be helpful.