-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cargo contract upgrade
command
#981
Comments
As a pre-req for this, we'll probably want the underlying implementation of #101 done |
We may also want to split this issue up into two subcommands:
The
The
|
cargo contract update
commandcargo contract upgrade
command
I believe we need to address use-ink/ink#1388 first |
This could be relevant: use-ink/ink#1909 |
Linking use-ink/ink#1981, which would be useful for migration |
cargo contract upgrade $proxy-address $implementation-address --suri $account
Upgradeability is a well-known feature in the blockchain ecosystem: it allows a contract implementation to be modified, fixed, and improved without the need of deploying the new contract in a new address. Using a proxy pattern to implement upgradeability has its pros and cons (some are mentioned below).
This command should allow developers to upgrade a given proxy
$proxy-address
to a new implementation$implementation-address
. To mitigate problems, this contract should check that:The text was updated successfully, but these errors were encountered: