mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
move generics of election trait to associated types (#10475)
* move generics of election trait to associated types * fix doctest
This commit is contained in:
@@ -55,11 +55,8 @@ pub async fn execute<Runtime: crate::RuntimeT, Block: BlockT + DeserializeOwned>
|
||||
<Runtime as pallet_staking::Config>::SortedListProvider::count(),
|
||||
);
|
||||
|
||||
let voters = <pallet_staking::Pallet<Runtime> as ElectionDataProvider<
|
||||
Runtime::AccountId,
|
||||
Runtime::BlockNumber,
|
||||
>>::voters(voter_limit)
|
||||
.unwrap();
|
||||
let voters =
|
||||
<pallet_staking::Pallet<Runtime> as ElectionDataProvider>::voters(voter_limit).unwrap();
|
||||
|
||||
let mut voters_nominator_only = voters
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user