Unverified Commit 549f0ebd authored by Peter Goodspeed-Niklaus's avatar Peter Goodspeed-Niklaus Committed by GitHub
Browse files

use named generic types in generate_solution_type (#2707)

* use named generic types in generate_solution_type

* "Update Substrate"

Co-authored-by: parity-processbot <>
parent 2195fb5a
Pipeline #131045 failed with stages
in 25 minutes and 53 seconds
This diff is collapsed.
...@@ -321,8 +321,11 @@ parameter_types! { ...@@ -321,8 +321,11 @@ parameter_types! {
sp_npos_elections::generate_solution_type!( sp_npos_elections::generate_solution_type!(
#[compact] #[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16) pub struct NposCompactSolution16::<
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy> VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
); );
impl pallet_election_provider_multi_phase::Config for Runtime { impl pallet_election_provider_multi_phase::Config for Runtime {
......
...@@ -331,8 +331,11 @@ parameter_types! { ...@@ -331,8 +331,11 @@ parameter_types! {
sp_npos_elections::generate_solution_type!( sp_npos_elections::generate_solution_type!(
#[compact] #[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16) pub struct NposCompactSolution16::<
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy> VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
); );
impl pallet_election_provider_multi_phase::Config for Runtime { impl pallet_election_provider_multi_phase::Config for Runtime {
......
...@@ -313,8 +313,11 @@ parameter_types! { ...@@ -313,8 +313,11 @@ parameter_types! {
sp_npos_elections::generate_solution_type!( sp_npos_elections::generate_solution_type!(
#[compact] #[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16) pub struct NposCompactSolution16::<
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy> VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
); );
impl pallet_election_provider_multi_phase::Config for Runtime { impl pallet_election_provider_multi_phase::Config for Runtime {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment