-
Notifications
You must be signed in to change notification settings - Fork 428
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
Bump metadata version to 5 #2126
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2126 +/- ##
=======================================
Coverage 53.67% 53.67%
=======================================
Files 224 224
Lines 7048 7046 -2
Branches 3118 3117 -1
=======================================
- Hits 3783 3782 -1
+ Misses 3265 3264 -1 ☔ View full report in Codecov by Sentry. |
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.
What do you think about just making it a const
uint instead of the enum?
layout, | ||
spec, | ||
registry, | ||
} | ||
} | ||
|
||
/// Returns the metadata version used by the contract. | ||
pub fn version(&self) -> &MetadataVersion { | ||
pub fn version(&self) -> &u64 { |
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.
Will this change result in the version being output as a number?
So {version: 5}
instead of {version: '5'}
?
Would prefer it as a number instead of string for easier version comparison up and down. 👍
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.
Yes, this changes the string into the integer. All good there
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Tue Feb 27 16:59:26 CET 2024 |
Summary
Bumps ink! metadata version to 5
Description
Since the introduction of Event 2.0 (#1827), and static buffer size in metadata (#1880), we need to increase the ABI metadata version to 5.
Note
This PR temporarily disables e2e on-chain test step in CI until the new version of
cargo-contract
including newink_metadata
crate is released.Checklist before requesting a review
CHANGELOG.md