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 theerc20
example for usage.Breaking Changes
This release includes a couple of breaking changes.
CallBuilder::returns()
method does not require an extraMessageResult
anymoreas the type is now added under the hood (#1525)
CallBuilder::invoke()
andCreateBuilder::instantiate()
methods now unwrap theResult
frompallet-contracts
under 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_result
flag has been removed from the#[ink(extension = …)]
attribute(#1569)
We now infer this information at compile time. If
handle_status
is set totrue
,the return type will still be wrapped into
Result
as before.1.63.0
. This was alreadythe case, but previously it was enforced by
cargo-contract
instead of ink!(#1609)
Added
Mapping
functions - #1492Fixed
WhereClosure
for the generics intostorage_item
‒ #1536 (thanks @xgreenx)Changed
LangError
from instantiate ‒ #1512__unstable__
wasm import module ‒ #1522return()
type ‒ #1525take_storage
‒ #1568instantiate
methods ‒ #1591CallBuilder
andCreateBuilder
error handling optional ‒ #1602CallBuilder::fire()
method toinvoke()
‒ #1604