From 51c852a9e79e9a7ef0088c5ec74a8d8559c81461 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. --- frame/staking/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/staking/src/lib.rs b/frame/staking/src/lib.rs index 0a22f31e6c3f5..30c2a160e9e72 100644 --- a/frame/staking/src/lib.rs +++ b/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))