fix ordering of staking weight arguments (#9063)

Closes #9054.
This commit is contained in:
Peter Goodspeed-Niklaus
2021-06-14 09:16:14 +02:00
committed by GitHub
parent 45f8b6e91f
commit 0975a92818
+1 -1
View File
@@ -2738,8 +2738,8 @@ impl<T: Config> frame_election_provider_support::ElectionDataProvider<T::Account
let slashing_span_count = <SlashingSpans<T>>::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))