-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[move] Make usage of move serialization version explicit #17502
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
4df57e6
to
05501a0
Compare
05501a0
to
ff0b728
Compare
ff0b728
to
a572593
Compare
let version = if config.bytecode_version > VERSION_6 { | ||
module.version | ||
} else { |
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.
This is unreachable currently, yeah?
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.
Correct!
@@ -66,6 +69,7 @@ impl Default for VerifierConfig { | |||
max_idenfitier_len: Some(DEFAULT_MAX_IDENTIFIER_LENGTH), | |||
allow_receiving_object_id: true, | |||
reject_mutable_random_on_entry_functions: true, | |||
bytecode_version: VERSION_MAX, |
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.
How does this work when we cut a version?
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.
Normally when cutting an execution version, however when adding a new bytecode_version
we will need to manually fix the bytecode_version
in previous versions to the particular VERSION_MAX
at the time they were cut. Overall I don't view this as too big of an issue though since when adding a new bytecode version a bunch of stuff needs to change all over the place anyways.
## Description Require explicit binary version when serializing Move modules. ## Test plan Make sure existing tests pass. --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
Description
Require explicit binary version when serializing Move modules.
Test plan
Make sure existing tests pass.
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.