Adds an additional parameter to Upgradable::up_deploy_code that allows to optionally specify a function call to be batched with the code deployment. This might be a function that migrates state. If that function call fails, the deployment is rolled back and the old code remains active.
Breaking change
This is a breaking change since it modifies the signature of Upgradable::up_deploy_code. Users that want to maintain the previous behavior (deployment without function call) can migrate in the following way:
// Previously:
up_deploy_code()
// Same behavior with the new API:
up_deploy_code(None)
Closes #76 and this external issue.
Adds an additional parameter to
Upgradable::up_deploy_code
that allows to optionally specify a function call to be batched with the code deployment. This might be a function that migrates state. If that function call fails, the deployment is rolled back and the old code remains active.Breaking change
This is a breaking change since it modifies the signature of
Upgradable::up_deploy_code
. Users that want to maintain the previous behavior (deployment without function call) can migrate in the following way: