Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
fix ordering of staking weight arguments (paritytech#9063)
Browse files Browse the repository at this point in the history
  • Loading branch information
coriolinus authored and Andrei Navoichyk committed Sep 9, 2022
1 parent 93ca0a6 commit 51c852a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 51c852a

Please sign in to comment.