Skip to content
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

Release v4.0.0-beta #1508

Merged
merged 7 commits into from
Nov 22, 2022
Merged

Release v4.0.0-beta #1508

merged 7 commits into from
Nov 22, 2022

Conversation

ascjones
Copy link
Collaborator

@ascjones ascjones commented Nov 18, 2022

Added

  • Allow using Result<Self, Error> as a return type in constructors ‒ #1446
  • Add Mapping::take() function allowing to get a value removing it from storage ‒ #1461

Changed

  • Add support for language level errors (LangError) ‒ #1450
  • Return LangErrors from constructors ‒ #1504
  • Update scale-info requirement to 2.3#1467
  • Merge Mapping::insert(key, val) and Mapping::insert_return_size(key, val) into one method - #1463

Removed

  • Remove ink_env::random function ‒ #1442

Closes #1478.

Post release:

@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2022

Codecov Report

Merging #1508 (6ccd3aa) into master (7618ec0) will increase coverage by 7.13%.
The diff coverage is n/a.

❗ Current head 6ccd3aa differs from pull request most recent head 5961869. Consider uploading reports for the commit 5961869 to get more accurate results

@@            Coverage Diff             @@
##           master    #1508      +/-   ##
==========================================
+ Coverage   64.55%   71.69%   +7.13%     
==========================================
  Files         204      204              
  Lines        6314     6316       +2     
==========================================
+ Hits         4076     4528     +452     
+ Misses       2238     1788     -450     
Impacted Files Coverage Δ
crates/allocator/src/bump.rs 87.60% <0.00%> (-0.64%) ⬇️
crates/metadata/src/layout/mod.rs 77.50% <0.00%> (+1.66%) ⬆️
crates/ink/ir/src/ir/attrs.rs 81.99% <0.00%> (+3.32%) ⬆️
crates/ink/ir/src/ir/item_impl/callable.rs 91.91% <0.00%> (+4.04%) ⬆️
crates/ink/ir/src/ir/trait_def/item/mod.rs 88.61% <0.00%> (+4.87%) ⬆️
crates/env/src/engine/off_chain/test_api.rs 64.70% <0.00%> (+5.88%) ⬆️
crates/ink/ir/src/ir/selector.rs 87.75% <0.00%> (+8.16%) ⬆️
crates/env/src/api.rs 36.92% <0.00%> (+9.23%) ⬆️
crates/ink/ir/src/ir/idents_lint.rs 71.42% <0.00%> (+9.52%) ⬆️
crates/storage/traits/src/layout/impls.rs 10.00% <0.00%> (+10.00%) ⬆️
... and 25 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@HCastano HCastano marked this pull request as ready for review November 21, 2022 22:50
Looks like we need to wait on a `smart-bench` release to be published
before we can publish the E2E testing crate.
@HCastano
Copy link
Contributor

During this I realized that the E2E testing framework is using a Git dep of smart-bench, which itself depends on a Git dep of ink!. We're gonna have to wait to release the E2E testing crates.

of the newly added `LangError`.

In short, this change means that all ink! messages and constructors now return a
`Result<R, LangError>`, where `R` is the original return type. Contract callers can
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to specify that for constructors R can also be Result<Self, Error> which will result in Result<Result<Self, Error>, LangError>

@ascjones
Copy link
Collaborator Author

@ascjones ascjones merged commit 03474e5 into master Nov 22, 2022
@ascjones ascjones deleted the v4.0.0-beta branch November 22, 2022 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ink! 4.0-beta tracking
4 participants