mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-02 17:01:07 +00:00
use named generic types in generate_solution_type (#2707)
* use named generic types in generate_solution_type * "Update Substrate" Co-authored-by: parity-processbot <>
This commit is contained in:
1 parent
ef816b089d
commit
27b6d83974
4 files changed
+161
-154
No files matched your search
Generated
+146
-148
File diff suppressed because it is too large.
Load diff
@@ -321,8 +321,11 @@ parameter_types! {
|
||||
|
||||
sp_npos_elections::generate_solution_type!(
|
||||
#[compact]
|
||||
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
|
||||
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
|
||||
pub struct NposCompactSolution16::<
|
||||
VoterIndex = u32,
|
||||
TargetIndex = u16,
|
||||
Accuracy = sp_runtime::PerU16,
|
||||
>(16)
|
||||
);
|
||||
|
||||
impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
|
||||
@@ -331,8 +331,11 @@ parameter_types! {
|
||||
|
||||
sp_npos_elections::generate_solution_type!(
|
||||
#[compact]
|
||||
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
|
||||
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
|
||||
pub struct NposCompactSolution16::<
|
||||
VoterIndex = u32,
|
||||
TargetIndex = u16,
|
||||
Accuracy = sp_runtime::PerU16,
|
||||
>(16)
|
||||
);
|
||||
|
||||
impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
|
||||
@@ -313,8 +313,11 @@ parameter_types! {
|
||||
|
||||
sp_npos_elections::generate_solution_type!(
|
||||
#[compact]
|
||||
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
|
||||
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
|
||||
pub struct NposCompactSolution16::<
|
||||
VoterIndex = u32,
|
||||
TargetIndex = u16,
|
||||
Accuracy = sp_runtime::PerU16,
|
||||
>(16)
|
||||
);
|
||||
|
||||
impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
|
||||
Reference in new issue
Block a user