Use the precise number of approvals when constructing RawOrgin::Members (#9647)

* Use the precise number of approvals when constructing RawOrgin::Members

Close #9604

* Split out tests.rs

* Add a test for dispatching with yes votes instead of voting threshold

* Simplify tests

- Also add copyright header.

* Remove unused hex_literal::hex in collective tests

* Extract the helper function record()

* Try fixing ci

* Add a test case with only two votes

* Nit

* Fix typo
This commit is contained in:
Liu-Cheng Xu
2021-09-13 11:12:37 +08:00
committed by GitHub
parent 056fd9b8a8
commit f9699db41c
4 changed files with 1014 additions and 1187 deletions
-1
View File
@@ -5033,7 +5033,6 @@ dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"hex-literal",
"log 0.4.14",
"parity-scale-codec",
"sp-core",
-3
View File
@@ -25,9 +25,6 @@ frame-support = { version = "4.0.0-dev", default-features = false, path = "../su
frame-system = { version = "4.0.0-dev", default-features = false, path = "../system" }
log = { version = "0.4.14", default-features = false }
[dev-dependencies]
hex-literal = "0.3.1"
[features]
default = ["std"]
std = [
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff