git.delta.rocks / unique-network / refs/commits / 5f9147549057

difftreelog

chore fix code review requests

Grigoriy Simonov2022-11-01parent: #3a5aaa8.patch.diff
in: master

3 files changed

modifiedpallets/common/src/erc.rsdiffbeforeafterboth
--- a/pallets/common/src/erc.rs
+++ b/pallets/common/src/erc.rs
@@ -64,7 +64,7 @@
 /// Does not always represent a full collection, for RFT it is either
 /// collection (Implementing ERC721), or specific collection token (Implementing ERC20).
 pub trait CommonEvmHandler {
-	/// Raw compiled binary code of the contract
+	/// Raw compiled binary code of the contract stub
 	const CODE: &'static [u8];
 
 	/// Call precompiled handle.
modifiedpallets/common/src/weights.rsdiffbeforeafterboth
26#![cfg_attr(rustfmt, rustfmt_skip)]26#![cfg_attr(rustfmt, rustfmt_skip)]
27#![allow(unused_parens)]27#![allow(unused_parens)]
28#![allow(unused_imports)]28#![allow(unused_imports)]
29#![allow(missing_docs)]
29#![allow(clippy::unnecessary_cast)]30#![allow(clippy::unnecessary_cast)]
3031
31use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
32use sp_std::marker::PhantomData;33use sp_std::marker::PhantomData;
3334
34/// Weight functions needed for pallet_common.35/// Weight functions needed for pallet_common.
35pub trait WeightInfo {36pub trait WeightInfo {
36 /// Weight for [`set_collection_properties`](pallet_common::set_collection_properties)
37 fn set_collection_properties(b: u32, ) -> Weight;37 fn set_collection_properties(b: u32, ) -> Weight;
38 /// Weight for [`delete_collection_properties`](pallet_common::delete_collection_properties)
39 fn delete_collection_properties(b: u32, ) -> Weight;38 fn delete_collection_properties(b: u32, ) -> Weight;
40}39}
4140
modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -279,7 +279,7 @@
 			let storage_version = StorageVersion::get::<Pallet<T>>();
 			if storage_version < StorageVersion::new(2) {
 				#[allow(deprecated)]
-				<TokenData<T>>::remove_all(None);
+				<TokenData<T>>::clear(u32::MAX, None).maybe_cursor;
 			}
 			StorageVersion::new(2).put::<Pallet<T>>();