File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,8 @@ impl pallet_scheduler::Config for Runtime {
228228 type MaximumWeight = MaximumSchedulerWeight ;
229229 // The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
230230 // OpenGov to schedule periodic auctions.
231- type ScheduleOrigin = EitherOf < EnsureRoot < AccountId > , AuctionAdmin > ;
231+ // Also allow Treasurer to schedule recurring payments.
232+ type ScheduleOrigin = EitherOf < EitherOf < EnsureRoot < AccountId > , AuctionAdmin > , Treasurer > ;
232233 type MaxScheduledPerBlock = MaxScheduledPerBlock ;
233234 type WeightInfo = weights:: pallet_scheduler:: WeightInfo < Runtime > ;
234235 type OriginPrivilegeCmp = OriginPrivilegeCmp ;
Original file line number Diff line number Diff line change @@ -212,7 +212,8 @@ impl pallet_scheduler::Config for Runtime {
212212 type MaximumWeight = MaximumSchedulerWeight ;
213213 // The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
214214 // OpenGov to schedule periodic auctions.
215- type ScheduleOrigin = EitherOf < EnsureRoot < AccountId > , AuctionAdmin > ;
215+ // Also allow Treasurer to schedule recurring payments.
216+ type ScheduleOrigin = EitherOf < EitherOf < EnsureRoot < AccountId > , AuctionAdmin > , Treasurer > ;
216217 type MaxScheduledPerBlock = MaxScheduledPerBlock ;
217218 type WeightInfo = weights:: pallet_scheduler:: WeightInfo < Runtime > ;
218219 type OriginPrivilegeCmp = OriginPrivilegeCmp ;
You can’t perform that action at this time.
0 commit comments