-
Notifications
You must be signed in to change notification settings - Fork 430
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
Add Mapping::contains(key)
and Mapping::insert_return_size(key, val)
#1224
Conversation
Can you satisfy the CI? |
Mapping::contains()
Mapping::contains(key)
and Mapping::insert_check(key)
Mapping::contains(key)
and Mapping::insert_check(key)
Mapping::contains(key)
and Mapping::insert_check(key, val)
Let's call it |
Mapping::contains(key)
and Mapping::insert_check(key, val)
Mapping::contains(key)
and Mapping::insert_return_size(key, val)
Not sure why ink-waterfall fails in CI, but it looks like something unrelated to this PR. |
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Mon May 2 19:12:38 CEST 2022 |
Co-authored-by: Michael Müller <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1224 +/- ##
===========================================
- Coverage 78.80% 62.84% -15.96%
===========================================
Files 229 228 -1
Lines 8681 8654 -27
===========================================
- Hits 6841 5439 -1402
- Misses 1840 3215 +1375
Continue to review full report at Codecov.
|
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.
🙌
i have update dependencies version to 3.0.1 in cargo.toml ,however cargo +nightly contract build
i have updated to 3.0.1 in cargo.toml, however it displayed this : error[E0599]: no method named [dependencies] |
3.0.1 was released on 6th of April, it doesn't include this PR. Please use master branch or wait for the next release. |
* Fix links in release notes (#1277) * Revert "Optimise deny_payment. Use eerywhere semantic of deny. (#1267)" This reverts commit 1bfccc7. * Revert backward-incompatible piece of #1224: dependency on `[seal1] seal_set_storage` * Revert backward-incompatible piece of #1233: removal of eth_compatibility crate * bump crate versions + update RELEASES.md * Mapping::insert_return_size is back, having now both `seal1` and `seal0` seal_set_storage versions used * set_storage_silent -> set_storage_compat renaming * spell fix * Apply suggestions from code review Co-authored-by: Michael Müller <[email protected]> Co-authored-by: Hernando Castano <[email protected]> * Apply suggestions from code review Co-authored-by: Hernando Castano <[email protected]> * Update crates/env/src/backend.rs Co-authored-by: Hernando Castano <[email protected]> * doc comments enhanced * `Mapping::insert()` to use backwards compatible seal fn * unreleased changes planned for 4.x removed from 3.x * Add more details to the release notes * fix catched issue with changed api function signature * fix storage trait dependent func * Apply new versions naming policy: step1. Old versions to keep their names. * Apply new versions naming policy: step2. Add `deprecated` attr and `# Compatibility` docs section * Apply suggestions from code review Co-authored-by: Hernando Castano <[email protected]> * fixes after next review round * more fixes after the review round * fmt * spellcheck config fix * Small wording fixes Co-authored-by: Michael Müller <[email protected]> Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
This adds:
both functions return the size of the (previously) stored value for the
key
.Needed for link#1