-
Notifications
You must be signed in to change notification settings - Fork 47
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
1.1 #113
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.
Hi,
Looks good. I am wondering now why we don't disable previous version in cep-78 ?
Just please try to change that previous_contract_version var name because it slightly confused me.
|
||
pub fn install_contract() { | ||
let name: String = runtime::get_named_arg(NAME); | ||
let previous_contract_version = runtime::get_key(&format!("{CONTRACT_NAME_PREFIX}{name}")) |
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.
Hi, would you mind changing the name of that var to previous_contract_hash ? because it is not a numerical version as the other contract_version
.into_t() | ||
.unwrap(); | ||
|
||
let install_request_1 = ExecuteRequestBuilder::standard( |
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.
I guess you mean upgrade_request or upgrade_request_1 ?
Add migration so users can make use of the new Peregrine cost table. Closes #112