Skip to content

Commit

Permalink
fix: foreign-assets manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshiposha committed Nov 27, 2024
1 parent 20ca740 commit 35bb081
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runtime/common/config/pallets/foreign_asset.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use frame_support::{parameter_types, PalletId};
use frame_support::{traits::EitherOfDiverse, parameter_types, PalletId};
#[cfg(not(feature = "governance"))]
use frame_system::EnsureRoot;
use pallet_evm::account::CrossAccountId;
Expand Down Expand Up @@ -40,7 +40,10 @@ impl pallet_foreign_assets::Config for Runtime {
type RuntimeEvent = RuntimeEvent;

#[cfg(feature = "governance")]
type ManagerOrigin = governance::RootOrFinancialCouncilMember;
type ManagerOrigin = EitherOfDiverse<
governance::RootOrFinancialCouncilMember,
governance::TechnicalCommitteeMember,
>;

#[cfg(not(feature = "governance"))]
type ManagerOrigin = EnsureRoot<Self::AccountId>;
Expand Down

0 comments on commit 35bb081

Please sign in to comment.