Fix Collective <-> Elections initialization. (#5454)

* A patch

* Fix

* Better approach.

* Fix grumbles
This commit is contained in:
Kian Paimani
2020-03-31 22:40:28 +02:00
committed by GitHub
parent 21c92dfd29
commit 63e6f81776
7 changed files with 149 additions and 75 deletions
@@ -10,6 +10,7 @@ description = "FRAME election pallet for PHRAGMEN"
[dependencies]
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.101", optional = true }
sp-runtime = { version = "2.0.0-alpha.5", default-features = false, path = "../../primitives/runtime" }
sp-phragmen = { version = "2.0.0-alpha.5", default-features = false, path = "../../primitives/phragmen" }
frame-support = { version = "2.0.0-alpha.5", default-features = false, path = "../support" }
@@ -22,11 +23,11 @@ hex-literal = "0.2.1"
pallet-balances = { version = "2.0.0-alpha.5", path = "../balances" }
sp-core = { version = "2.0.0-alpha.5", path = "../../primitives/core" }
substrate-test-utils = { version = "2.0.0-alpha.5", path = "../../test-utils" }
serde = { version = "1.0.101" }
[features]
default = ["std"]
std = [
"serde",
"codec/std",
"frame-support/std",
"sp-runtime/std",