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
64/// Does not always represent a full collection, for RFT it is either64/// Does not always represent a full collection, for RFT it is either
65/// collection (Implementing ERC721), or specific collection token (Implementing ERC20).65/// collection (Implementing ERC721), or specific collection token (Implementing ERC20).
66pub trait CommonEvmHandler {66pub trait CommonEvmHandler {
67 /// Raw compiled binary code of the contract67 /// Raw compiled binary code of the contract stub
68 const CODE: &'static [u8];68 const CODE: &'static [u8];
6969
70 /// Call precompiled handle.70 /// Call precompiled handle.
modifiedpallets/common/src/weights.rsdiffbeforeafterboth
--- a/pallets/common/src/weights.rs
+++ b/pallets/common/src/weights.rs
@@ -26,6 +26,7 @@
 #![cfg_attr(rustfmt, rustfmt_skip)]
 #![allow(unused_parens)]
 #![allow(unused_imports)]
+#![allow(missing_docs)]
 #![allow(clippy::unnecessary_cast)]
 
 use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
@@ -33,9 +34,7 @@
 
 /// Weight functions needed for pallet_common.
 pub trait WeightInfo {
-	/// Weight for [`set_collection_properties`](pallet_common::set_collection_properties)
 	fn set_collection_properties(b: u32, ) -> Weight;
-	/// Weight for [`delete_collection_properties`](pallet_common::delete_collection_properties)
 	fn delete_collection_properties(b: u32, ) -> Weight;
 }
 
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>>();