I wrote one smart contract without upgradable logic, now I want to update the same smart contract with some changes. Is it possible to copy the data from old contract storage to a new one?


Its not going to be possible to upgrade the contract, but copying the values should be trivial. The node creating new contract should read the current state via contract accessors (if those exist), otherwise, scan the chain for contract calls to this contract and set value based on the inputs from that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.