difftreelog
chore fix code review requests
in: master
3 files changed
pallets/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.
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.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>>();