Closed ndkazu closed 2 years ago
Merging #165 (38e37d0) into main (5f5ca13) will increase coverage by
0.22%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #165 +/- ##
==========================================
+ Coverage 74.63% 74.85% +0.22%
==========================================
Files 49 49
Lines 3745 3766 +21
==========================================
+ Hits 2795 2819 +24
+ Misses 950 947 -3
Impacted Files | Coverage Δ | |
---|---|---|
pallets/nft/src/functions.rs | 69.23% <100.00%> (+6.59%) |
:arrow_up: |
pallets/onboarding/src/functions.rs | 87.83% <100.00%> (+1.35%) |
:arrow_up: |
pallets/onboarding/src/lib.rs | 88.98% <100.00%> (+0.29%) |
:arrow_up: |
pallets/onboarding/src/tests.rs | 100.00% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Motivations In the Onboarding Pallet, the Seller could only modify the price of the asset before submission to the council. Now he can also change the asset metadata.
Execution
set_metadata(owner: T::AccountId, collection_id: T::NftCollectionId, item_id: T::NftItemId, metadata: BoundedVecOfUnq<T>, )
was added to the nft pallet. This helper function is actually using thepallet_uniques
set_metadata
.pallet_onboarding
, the user can change the initial metadata through the dispatchable functionsubmit_awaiting(...)
.