-
Notifications
You must be signed in to change notification settings - Fork 359
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
Remove MessageInfo argument from migrate entry point #709
Conversation
…he migrate function signature as query function. Updated the json schema of MigrateMsg.
…ed the fn migrate signature in burner contract.
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 to me. Could you rebase this work to the latest master?
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 contribution
@webmaster128 can you please review it again. I have rebased it to latest master branch. Solved merge conflicts also. |
Looks good to me. I would just add a CHANGELOG entry "removed info argument from migrate". |
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.
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, thank you.
Now, why is #715 important? This PR (#709) changes the interface between VM and contract. The testing contract in packages/vm/testdata/hackatom_0.14.wasm
is still the old one, i.e. incompatible. So updating packages/vm/testdata/hackatom_0.14.wasm
should be required as part of this. However, this interface is not tested so this incompatibility is not detected by th CI.
Ohk @webmaster128 I will work on the issue #715 and raise a PR. |
Could you update this to the latest master (rebase or merge master into this). This probably leads to one failing test. We then re-compile the testing contract to make it work again. |
…e#690 pulling rebase code from remote main branch into local issue#690 after merging issue#715 code.
@webmaster128 I have tried to remove The error is |
@juggernaut09 right, this is because the test contract
After that, it should work. You will have to update some gas values in the tests after recompiling. |
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 to me. Just the debug print
Thanks a lot for your contribution, @juggernaut09 |
Closes #690
fn migrate
asfn query
. (Removed theMessageInfo
). in both hackatom and burner contracts.verifier
topayout
as referenced by @webmaster128. in hackatom contract.MigrateMsg
(migrate_msg.json
) in hackatom contract.packages/std/src/entry_points.rs
) and as well as the wrapper(packages/std/src/exports.rs
).Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.