Introduce SubmitOrigin to Referenda pallet config (#11567)

This commit is contained in:
Gavin Wood
2022-06-01 11:46:06 +01:00
committed by GitHub
parent d6ea0e4205
commit 1c59b81690
4 changed files with 7 additions and 4 deletions
+2
View File
@@ -825,6 +825,7 @@ impl pallet_referenda::Config for Runtime {
type Event = Event;
type Scheduler = Scheduler;
type Currency = pallet_balances::Pallet<Self>;
type SubmitOrigin = EnsureSigned<AccountId>;
type CancelOrigin = EnsureRoot<AccountId>;
type KillOrigin = EnsureRoot<AccountId>;
type Slash = ();
@@ -843,6 +844,7 @@ impl pallet_referenda::Config<pallet_referenda::Instance2> for Runtime {
type Event = Event;
type Scheduler = Scheduler;
type Currency = pallet_balances::Pallet<Self>;
type SubmitOrigin = EnsureSigned<AccountId>;
type CancelOrigin = EnsureRoot<AccountId>;
type KillOrigin = EnsureRoot<AccountId>;
type Slash = ();