From 5f91475490577d5902388e2a852c45e1cc71b5e8 Mon Sep 17 00:00:00 2001 From: Grigoriy Simonov Date: Tue, 01 Nov 2022 10:32:55 +0000 Subject: [PATCH] chore: fix code review requests --- --- 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. --- 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; } --- a/pallets/refungible/src/lib.rs +++ b/pallets/refungible/src/lib.rs @@ -279,7 +279,7 @@ let storage_version = StorageVersion::get::>(); if storage_version < StorageVersion::new(2) { #[allow(deprecated)] - >::remove_all(None); + >::clear(u32::MAX, None).maybe_cursor; } StorageVersion::new(2).put::>(); -- gitstuff