Skip to content

Commit

Permalink
mainnet: enable single member admin calls
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianFranzen committed Jul 26, 2024
1 parent 90e1b97 commit aeab7f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtimes/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -946,11 +946,12 @@ impl pallet_collective::Config<TechnicalCollective> for Runtime {
type MaxProposalWeight = MaxCollectivesProposalWeight;
}

#[allow(dead_code)]
#[cfg(feature = "development")]
type TechnicalMember = pallet_collective::EnsureMember<AccountId, TechnicalCollective>;

type TechnicalMajority =
pallet_collective::EnsureProportionMoreThan<AccountId, TechnicalCollective, 1, 2>;
#[allow(dead_code)]
type TechnicalSuperMajority =
pallet_collective::EnsureProportionAtLeast<AccountId, TechnicalCollective, 2, 3>;

Expand Down Expand Up @@ -1220,11 +1221,11 @@ parameter_types! {
pub IndexerReward: Balance = ANLOG;
}

#[cfg(not(feature = "developments"))]
#[cfg(not(feature = "development"))]
/// Default admin origin for all chronicle related pallets
type ChronicleAdmin = TechnicalSuperMajority;

#[cfg(feature = "developments")]
#[cfg(feature = "development")]
/// Development admin origin for all chronicle related pallets
type ChronicleAdmin = TechnicalMember;

Expand Down

0 comments on commit aeab7f1

Please sign in to comment.