mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 03:31:10 +00:00
Remove Ord impl for Weights V2 and add comparison fns (#12183)
* Remove Ord impl for Weights V2 and add comparison fns * Remove TODO * Update frame/multisig/src/lib.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update frame/election-provider-multi-phase/src/unsigned.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Remove unused import * cargo fmt * Fix tests * Fix more tests * cargo fmt * Fix more tests * Update frame/contracts/src/wasm/mod.rs Co-authored-by: Alexander Theißen <alex.theissen@me.com> * Update weight benchmarking templates Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
@@ -33,7 +33,7 @@ use sp_runtime::{
|
||||
Perbill, Percent,
|
||||
};
|
||||
use sp_staking::{EraIndex, SessionIndex};
|
||||
use sp_std::{cmp::max, prelude::*};
|
||||
use sp_std::prelude::*;
|
||||
|
||||
mod impls;
|
||||
|
||||
@@ -1571,10 +1571,10 @@ pub mod pallet {
|
||||
/// to kick people under the new limits, `chill_other` should be called.
|
||||
// We assume the worst case for this call is either: all items are set or all items are
|
||||
// removed.
|
||||
#[pallet::weight(max(
|
||||
T::WeightInfo::set_staking_configs_all_set(),
|
||||
T::WeightInfo::set_staking_configs_all_remove()
|
||||
))]
|
||||
#[pallet::weight(
|
||||
T::WeightInfo::set_staking_configs_all_set()
|
||||
.max(T::WeightInfo::set_staking_configs_all_remove())
|
||||
)]
|
||||
pub fn set_staking_configs(
|
||||
origin: OriginFor<T>,
|
||||
min_nominator_bond: ConfigOp<BalanceOf<T>>,
|
||||
|
||||
Reference in New Issue
Block a user