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. |
ascjones
left a comment
There was a problem hiding this comment.
What do you think about just making it a const uint instead of the enum?
|
|
||
| /// 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.
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.
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-contractincluding newink_metadatacrate is released.Checklist before requesting a review
CHANGELOG.md