diff --git a/frame/balances/src/lib.rs b/frame/balances/src/lib.rs index b82d4cd37b600..59e70934343cb 100644 --- a/frame/balances/src/lib.rs +++ b/frame/balances/src/lib.rs @@ -704,7 +704,7 @@ pub mod pallet { Ok(()) } - /// Upgrade a specified account. + /*/// Upgrade a specified account. /// /// - `origin`: Must be `Signed`. /// - `who`: The account to be upgraded. @@ -735,7 +735,7 @@ pub mod pallet { } else { Ok(Pays::Yes.into()) } - } + }*/ /// Alias for `transfer_allow_death`, provided only for name-wise compatibility. /// diff --git a/frame/balances/src/weights.rs b/frame/balances/src/weights.rs index f35d9c697028b..020359b5bb282 100644 --- a/frame/balances/src/weights.rs +++ b/frame/balances/src/weights.rs @@ -55,7 +55,7 @@ pub trait WeightInfo { fn force_transfer() -> Weight; fn transfer_all() -> Weight; fn force_unreserve() -> Weight; - fn upgrade_accounts(u: u32, ) -> Weight; + //fn upgrade_accounts(u: u32, ) -> Weight; } /// Weights for pallet_balances using the Substrate node and recommended hardware. @@ -138,7 +138,7 @@ impl WeightInfo for SubstrateWeight { .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } - /// Storage: System Account (r:999 w:999) + /*/// Storage: System Account (r:999 w:999) /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) /// The range of component `u` is `[1, 1000]`. fn upgrade_accounts(u: u32, ) -> Weight { @@ -152,7 +152,7 @@ impl WeightInfo for SubstrateWeight { .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) - } + }*/ } // For backwards compatibility and tests @@ -234,7 +234,7 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } - /// Storage: System Account (r:999 w:999) + /*/// Storage: System Account (r:999 w:999) /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) /// The range of component `u` is `[1, 1000]`. fn upgrade_accounts(u: u32, ) -> Weight { @@ -248,5 +248,5 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) - } + }*/ }