Skip to content

Commit

Permalink
Set whitelist dispatch origin
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Nov 11, 2024
1 parent 092ed60 commit 693bef4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions runtime/koi/src/pallets/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,13 @@ frame_support::parameter_types! {
// The purpose of this pallet is to queue calls to be dispatched as by root later => the Dispatch
// origin corresponds to the Gov2 Whitelist track.
impl pallet_whitelist::Config for Runtime {
type DispatchWhitelistedOrigin = RootOr<WhitelistedCaller>;
type DispatchWhitelistedOrigin =
RootOr<frame_support::traits::EitherOf<WhitelistedCaller, RingDao<RingDaoAccount>>>;
type Preimages = Preimage;
type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = weights::pallet_whitelist::WeightInfo<Self>;
type WhitelistOrigin = frame_support::traits::EitherOf<
RingDao<RingDaoAccount>,
AtLeastFourFifth<TechnicalCollective>,
>;
type WhitelistOrigin = AtLeastFourFifth<TechnicalCollective>;
}

frame_support::parameter_types! {
Expand Down

0 comments on commit 693bef4

Please sign in to comment.