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

Mesh 2133/return extrinsic errors #1581

Merged
merged 7 commits into from
Jan 16, 2024

Conversation

HenriqueNogara
Copy link
Contributor

Calling call_runtime_with_error writes a Result<(), String> to the output buffer, which can be used for more descriptive error msg.

changelog

new features

  • Add support for CallRuntimeWithError chain_extension;

modified external API

  • Remove support for deprecated chain_extension OldCallRuntime;

new external API

  • Add support for CallRuntimeWithError chain_extension;

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (36d0098) 58.67% compared to head (2ad9cce) 58.67%.
Report is 2 commits behind head on nft-sc-draft.

Additional details and impacted files
@@               Coverage Diff                @@
##           nft-sc-draft    #1581      +/-   ##
================================================
- Coverage         58.67%   58.67%   -0.01%     
================================================
  Files               142      142              
  Lines             32236    32236              
================================================
- Hits              18915    18914       -1     
- Misses            13321    13322       +1     

see 2 files with indirect coverage changes

@HenriqueNogara HenriqueNogara force-pushed the MESH-2133/return-extrinsic-errors branch from 44cec9d to ae49996 Compare January 15, 2024 16:41
@adamdossa adamdossa merged commit a291ec5 into nft-sc-draft Jan 16, 2024
14 checks passed
@adamdossa adamdossa deleted the MESH-2133/return-extrinsic-errors branch January 16, 2024 09:10
Neopallium added a commit that referenced this pull request Jan 17, 2024
* Add nft_royalty contract dir

* Add the first draft for the following functions: royalty_percentage, asset_metadata_value, get_royalty_amount, new

* Add setup_legs first draft; Add NFTOffer type

* Move tests; Move types

* Add royalty_portfolios to storage; Improve create_transfer draft; Add first draft of NFTArtistRules

* Add metadata_keys mapping

* Fix clippy warnings

* Add create_custody_portfolio draft

* Add PolymeshInk

* Fix compilation

* Fix toml; Remove unused dependency

* Add PolymeshInk query calls

* Add value to const; Fix error msg

* Add PolymeshInk::get_our_did() call for updating the contract's did

* Improve docs

* Add readme file

* Add contract initialization

* Remove polymesh-api dependency; Improve readme; Add artist_identity to NFTArtistRules

* Improve readme

* Add debug_println to create_transfer; Update .toml and .lock

* Mesh 2133/return extrinsic errors (#1581)

* Write extrinsic error to output buffer

* Remove support for FuncId::OldCallRuntime; Add CallRuntimeWithError

* Split contract tests; Change test to use call_runtime instead of old_call_runtime

* Add InkDelegateCallError back

* Update polymesh-api dependency

* Add use_call_runtime_with_error

* Add use_call_runtime_with_error as a feature flag

* Add initialization flag; Remove api from storage; Deduct royalty from tranfer price

---------

Co-authored-by: Adam Dossa <adam.dossa@gmail.com>
Co-authored-by: Robert Gabriel Jakabosky <rjakabosky+neopallium@neoawareness.com>
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.

3 participants