From 3af678dc25dc6d31d5e10b758d2823c8b757edc5 Mon Sep 17 00:00:00 2001 From: Peter Goodspeed-Niklaus Date: Thu, 10 Jun 2021 10:01:08 +0200 Subject: [PATCH] fix ordering of staking weight arguments 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 888601e307f35..8a736785e9e45 100644 --- a/frame/staking/src/lib.rs +++ b/frame/staking/src/lib.rs @@ -2557,8 +2557,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))