From 0975a92818bfdce23d538669d003d9be71e76e61 Mon Sep 17 00:00:00 2001 From: Peter Goodspeed-Niklaus Date: Mon, 14 Jun 2021 09:16:14 +0200 Subject: [PATCH] fix ordering of staking weight arguments (#9063) Closes #9054. --- substrate/frame/staking/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/frame/staking/src/lib.rs b/substrate/frame/staking/src/lib.rs index 0a22f31e6c..30c2a160e9 100644 --- a/substrate/frame/staking/src/lib.rs +++ b/substrate/frame/staking/src/lib.rs @@ -2738,8 +2738,8 @@ impl frame_election_provider_support::ElectionDataProvider>::iter().count(); let weight = T::WeightInfo::get_npos_voters( - nominator_count as u32, validator_count as u32, + nominator_count as u32, slashing_span_count as u32, ); Ok((Self::get_npos_voters(), weight))