mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-01 08:29:49 +00:00
add Treasurer to SchedulerOrigin (#1325)
This commit is contained in:
1 parent
2c35bc3d27
commit
be761b743b
2 files changed
+4
-2
No files matched your search
@@ -228,7 +228,8 @@ impl pallet_scheduler::Config for Runtime {
|
||||
type MaximumWeight = MaximumSchedulerWeight;
|
||||
// The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
|
||||
// OpenGov to schedule periodic auctions.
|
||||
type ScheduleOrigin = EitherOf<EnsureRoot<AccountId>, AuctionAdmin>;
|
||||
// Also allow Treasurer to schedule recurring payments.
|
||||
type ScheduleOrigin = EitherOf<EitherOf<EnsureRoot<AccountId>, AuctionAdmin>, Treasurer>;
|
||||
type MaxScheduledPerBlock = MaxScheduledPerBlock;
|
||||
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
|
||||
type OriginPrivilegeCmp = OriginPrivilegeCmp;
|
||||
|
||||
@@ -212,7 +212,8 @@ impl pallet_scheduler::Config for Runtime {
|
||||
type MaximumWeight = MaximumSchedulerWeight;
|
||||
// The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
|
||||
// OpenGov to schedule periodic auctions.
|
||||
type ScheduleOrigin = EitherOf<EnsureRoot<AccountId>, AuctionAdmin>;
|
||||
// Also allow Treasurer to schedule recurring payments.
|
||||
type ScheduleOrigin = EitherOf<EitherOf<EnsureRoot<AccountId>, AuctionAdmin>, Treasurer>;
|
||||
type MaxScheduledPerBlock = MaxScheduledPerBlock;
|
||||
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
|
||||
type OriginPrivilegeCmp = OriginPrivilegeCmp;
|
||||
|
||||
Reference in new issue
Block a user