More tests for council voting.

Also allow AsRef to be used for Public keys to simplify test code.
This commit is contained in:
Gav
2018-03-05 12:11:56 +01:00
parent 8d84ca8b48
commit 7d378d3de3
11 changed files with 273 additions and 66 deletions
+4 -1
View File
@@ -17,7 +17,7 @@
//! Democratic system: Handles administration of general stakeholder voting.
use demo_primitives::Proposal;
use runtime::{staking, system, session};
use runtime::{staking, system, session, democracy};
pub fn enact_proposal(proposal: Proposal) {
match proposal {
@@ -42,5 +42,8 @@ pub fn enact_proposal(proposal: Proposal) {
Proposal::StakingForceNewEra => {
staking::privileged::force_new_era()
}
Proposal::DemocracyCancelReferendum(ref_index) => {
democracy::privileged::clear_referendum(ref_index)
}
}
}