Contract Migration
Optionally perform code and state migrations of Secret Network smart contracts
Last updated
Was this helpful?
Optionally perform code and state migrations of Secret Network smart contracts
Last updated
Was this helpful?
In some cases, for example when wanting to deliver support to users and deploy bug fixes, it makes sense to have the ability to change the code. This is especially true for services which wish to change algorithms, add features, etc. For these use cases, contracts can be written to allow various modes of migration. Doing so means that anyone inspecting the source code will be able to know that such a migration is possible and will require that users have a higher level of trust in the contract administrators, as they can effectively install a backdoor in their product.
Secret used to not support the native CosmWasm implementation of contract migratability, since v1.11 it does. The old manual examples are still displayed here as a reference.