Function concordium_std::prims::upgrade
source · pub unsafe extern "C" fn upgrade(module_ref: *const u8) -> u64
Expand description
Upgrade the smart contract module to a provided module. The only argument is a pointer to 32 bytes for the module reference to become the new smart contract module of this instance. A return value of:
0
means the upgrade succeeded.0x07_0000_0000
means the upgrade failed: The provided module was not found.0x08_0000_0000
means the upgrade failed: The new module did not contain a contract with the same name.0x09_0000_0000
means the upgrade failed: The new module is an unsupported smart contract module version.