Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Update frame/election-provider-support/src/onchain.rs
Co-authored-by: Shawn Tabrizi <[email protected]>
  • Loading branch information
kianenigma and shawntabrizi authored Jan 19, 2022
commit 93a910305edacab4bf8c4b33eda156fb1fe4851c
4 changes: 2 additions & 2 deletions frame/election-provider-support/src/onchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ impl<T: Config> ElectionProvider for OnChainSequentialPhragmen<T> {

impl<T: Config> InstantElectionProvider for OnChainSequentialPhragmen<T> {
fn instant_elect(
maybe_max_voters: Option<usize>,
maybe_max_targets: Option<usize>,
maybe_max_voters: Option<u32>,
maybe_max_targets: Option<u32>,
) -> Result<Supports<Self::AccountId>, Self::Error> {
Self::elect_with(maybe_max_voters, maybe_max_targets)
}
Expand Down