Introduce a PhantomData field in GenesisConfig (#1116)

This makes it possible to support `GenesisConfig`s that to do not use
generic parameter.
This commit is contained in:
Bastian Köcher
2018-11-16 16:16:10 +01:00
committed by Gav Wood
parent 0628ce94bb
commit a4e5842915
15 changed files with 64 additions and 6 deletions
+3
View File
@@ -230,10 +230,12 @@ mod tests {
transfer_fee: 0,
creation_fee: 0,
reclaim_rebate: 0,
_genesis_phantom_data: Default::default(),
}),
session: Some(SessionConfig {
session_length: 2,
validators: vec![One.to_raw_public().into(), Two.to_raw_public().into(), three],
_genesis_phantom_data: Default::default(),
}),
staking: Some(StakingConfig {
sessions_per_era: 2,
@@ -247,6 +249,7 @@ mod tests {
current_offline_slash: 0,
current_session_reward: 0,
offline_slash_grace: 0,
_genesis_phantom_data: Default::default(),
}),
democracy: Some(Default::default()),
council_seats: Some(Default::default()),