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
--- 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
279 let storage_version = StorageVersion::get::<Pallet<T>>();279 let storage_version = StorageVersion::get::<Pallet<T>>();
280 if storage_version < StorageVersion::new(2) {280 if storage_version < StorageVersion::new(2) {
281 #[allow(deprecated)]281 #[allow(deprecated)]
282 <TokenData<T>>::remove_all(None);282 <TokenData<T>>::clear(u32::MAX, None).maybe_cursor;
283 }283 }
284 StorageVersion::new(2).put::<Pallet<T>>();284 StorageVersion::new(2).put::<Pallet<T>>();
285285