Skip to content
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

Merged
merged 12 commits into from
Feb 7, 2024
Merged

1.1 #113

merged 12 commits into from
Feb 7, 2024

Conversation

deuszex
Copy link
Contributor

@deuszex deuszex commented Feb 6, 2024

Add migration so users can make use of the new Peregrine cost table. Closes #112

@deuszex deuszex requested review from gRoussac and gyroflaw February 7, 2024 08:39
@deuszex deuszex merged commit a4c38e4 into dev Feb 7, 2024
2 checks passed
Copy link
Contributor

@gRoussac gRoussac left a 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}"))
Copy link
Contributor

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(
Copy link
Contributor

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a contract upgrade path so that existing contract can benefit from Peregrine lower fees
2 participants