Add Mapping::contains(key) and Mapping::insert_return_size(key, val)#1224
Add Mapping::contains(key) and Mapping::insert_return_size(key, val)#1224
Mapping::contains(key) and Mapping::insert_return_size(key, val)#1224Conversation
|
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 <mich@elmueller.net>
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.
|
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 <mich@elmueller.net> Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Update crates/env/src/backend.rs Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * 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 <HCastano@users.noreply.github.com> * fixes after next review round * more fixes after the review round * fmt * spellcheck config fix * Small wording fixes Co-authored-by: Michael Müller <mich@elmueller.net> Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> Co-authored-by: Hernando Castano <hernando@hcastano.com>
This adds:
both functions return the size of the (previously) stored value for the
key.Needed for link#1