Conditional migrate
call with extra MigrateInfo
argument after contract update
#2117
Labels
migrate
call with extra MigrateInfo
argument after contract update
#2117
The result of this task is an implementation of the conditional
migrate
entry point calling after a contract's code update on the blockchain. Currentlymigrate
is called every time the contract's binary is updated on the chain.Procedure
The following procedure should be implemented:
Migrate method
The
migrate
method needs to have a new parameter provided:info: MigrateInfo
. In order to keep the backward compatibility, the VM should check the arity of the method implemented by the contract. If the arity is greater than 3, the followingmigrate
signature should be assumed:The text was updated successfully, but these errors were encountered: