mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 13:57:58 +00:00
Fix phragmen election to wasm (#3898)
* Fix phragmen-election compile to wasm * Fix chain_spec stuff * Fix panic with no term duration
This commit is contained in:
@@ -235,11 +235,11 @@ pub fn testnet_genesis(
|
||||
members: vec![],
|
||||
phantom: Default::default(),
|
||||
}),
|
||||
elections: Some(ElectionsConfig {
|
||||
members: vec![],
|
||||
presentation_duration: 1 * DAYS,
|
||||
elections_phragmen: Some(ElectionsConfig {
|
||||
members: endowed_accounts.iter().take(2).cloned().collect(),
|
||||
term_duration: 28 * DAYS,
|
||||
desired_seats: 0,
|
||||
desired_members: 4,
|
||||
desired_runners_up: 1,
|
||||
}),
|
||||
contracts: Some(ContractsConfig {
|
||||
current_schedule: contracts::Schedule {
|
||||
|
||||
Reference in New Issue
Block a user