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

Commit

Permalink
fix ordering of staking weight arguments
Browse files Browse the repository at this point in the history
Closes #9054.
  • Loading branch information
coriolinus committed Jun 10, 2021
1 parent eb9033b commit 3af678d
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 @@ -2557,8 +2557,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 3af678d

Please sign in to comment.