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
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
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