kusama: allow root to cancel/kill referendums (#6665)

* kusama: allow root to cancel/kill referendums

* fix semicolons

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
asynchronous rob
2023-02-02 21:54:22 -06:00
committed by GitHub
parent cf3c838e05
commit 31d9365653
@@ -82,8 +82,8 @@ impl pallet_referenda::Config for Runtime {
type Scheduler = Scheduler;
type Currency = Balances;
type SubmitOrigin = frame_system::EnsureSigned<AccountId>;
type CancelOrigin = ReferendumCanceller;
type KillOrigin = ReferendumKiller;
type CancelOrigin = EitherOf<EnsureRoot<AccountId>, ReferendumCanceller>;
type KillOrigin = EitherOf<EnsureRoot<AccountId>, ReferendumKiller>;
type Slash = Treasury;
type Votes = pallet_conviction_voting::VotesOf<Runtime>;
type Tally = pallet_conviction_voting::TallyOf<Runtime>;