difftreelog
chore fix code review requests
in: master
3 files changed
pallets/common/src/erc.rsdiffbeforeafterboth64/// Does not always represent a full collection, for RFT it is either64/// Does not always represent a full collection, for RFT it is either65/// 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 stub68 const CODE: &'static [u8];68 const CODE: &'static [u8];696970 /// Call precompiled handle.70 /// Call precompiled handle.pallets/common/src/weights.rsdiffbeforeafterboth26#![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)]303131use 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;333434/// 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}4140pallets/refungible/src/lib.rsdiffbeforeafterboth279 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