Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1617 +/- ##
==========================================
- Coverage 70.45% 70.38% -0.07%
==========================================
Files 207 207
Lines 6396 6398 +2
==========================================
- Hits 4506 4503 -3
- Misses 1890 1895 +5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This supersedes #1590, but RC coming soon™
Version 4.0.0-beta.1
The coolest feature included in this release is the first first published version of
ink!'s native "end-to-end" (E2E) testing framework.
This enables testing of a contract by deploying and calling it on a Substrate node with
pallet-contracts. See theerc20example for usage.Breaking Changes
This release includes a couple of breaking changes.
CallBuilder::returns()method does not require an extraMessageResultanymoreas the type is now added under the hood (#1525)
CallBuilder::invoke()andCreateBuilder::instantiate()methods now unwrap theResultfrompallet-contractsunder the hood (#1602)If you wish to handle the error use the new
try_variants of those methods instead.CallBuilder::fire()method has been renamed toinvoke()(#1604)
returns_resultflag has been removed from the#[ink(extension = …)]attribute(#1569)
We now infer this information at compile time. If
handle_statusis set totrue,the return type will still be wrapped into
Resultas before.1.63.0. This was alreadythe case, but previously it was enforced by
cargo-contractinstead of ink!(#1609)
Added
Mappingfunctions - #1492Fixed
WhereClosurefor the generics intostorage_item‒ #1536 (thanks @xgreenx)Changed
LangErrorfrom instantiate ‒ #1512__unstable__wasm import module ‒ #1522return()type ‒ #1525take_storage‒ #1568instantiatemethods ‒ #1591CallBuilderandCreateBuildererror handling optional ‒ #1602CallBuilder::fire()method toinvoke()‒ #1604