mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 19:11:02 +00:00
More tests for council voting.
Also allow AsRef to be used for Public keys to simplify test code.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user