Will it be possible to upgrade from ink! 3.3.1 to ink 4.0 on-chain via set_code_hash while keeping the contract storage?

A lot of questions are rising from ink! 4.0 so any other clarification is welcomed

1 Answer 1


No. The way ink! 4.0 does storage was completely reworked. In general, you cannot expect to be able to re-use the storage during such an upgrade.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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