Contract.Migrate Method (byte[], byte[], byte, bool, string, string, string, string, string)
Migrate/renew smart contract. This method is similar to Contract.Create
, the only difference being this method adds logic for migration of the private persistent store. When executing this method, it will migrate all existing data in the persistent store to the new contract.
If the contract does not utilise the persistent store, Contract.Migrate
is functionally the same as Contract.Create
.
Namespace: Neo.SmartContract.Framework.Services.Neo
Assembly: Neo.SmartContract.Framework
Syntax
Parameters:
script: The contract bytecode as a byte array.
parameter_list: Parameter list as a byte array. Refer to Smart Contract Parameters and Return Values .
return_type: Return type as a byte. Refer to Smart Contract Parameters and Return Values .
need_storage: If the contract requires a persistent store, boolean.
name: The name of the contract as a string.
version: The version as a string.
author: The author name as a string.
email: The author email as a string.
description: The description of the contract as a string.
Return value: Contract .