-
Notifications
You must be signed in to change notification settings - Fork 119
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 remove
command
#837
Add remove
command
#837
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can see it's still a WIP but looks reasonable so far. The main thing to check is about that dry-run endpoint on pallet-contracts
. We may want to consider that it is not necessary in this case to do the dry-run since we don't need the gas limit estimate like we do with other commands. The only thing to think about is how to elegantly handle the case where the code_has to be removed does not exist on chain.
Once #893 is merged we could use that too for determining the code hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I think we need the optional --code-hash
arg back though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a few nitpicks :)
Also, should we have a confirmation just in case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few suggestions but we are nearly there!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the final couple of comments then we can merge 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Thanks for the final touches |
In the wake of this issue, #671
ToDo :