Skip to content

Commit

Permalink
roll back adjust AssetAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
SunTiebing committed Jan 17, 2025
1 parent 0ee1798 commit e763a86
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion runtime/bifrost-polkadot/src/hyperbridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ impl IsmpRouter for Router {
}
}

/// Should provide an account that is funded and can be used to pay for asset creation
pub struct AssetAdmin;
impl Get<AccountId> for AssetAdmin {
fn get() -> AccountId {
Treasury::account_id()
}
}

impl pallet_token_gateway::Config for Runtime {
// configure the runtime event
type RuntimeEvent = RuntimeEvent;
Expand All @@ -94,7 +102,7 @@ impl pallet_token_gateway::Config for Runtime {
// Configured as Pallet balances
type NativeCurrency = Balances;
// AssetAdmin account
type AssetAdmin = TechAdminOrCouncil;
type AssetAdmin = AssetAdmin;
// The Native asset Id
type NativeAssetId = NativeCurrencyId;
// A type that provides a function for creating unique asset ids
Expand Down

0 comments on commit e763a86

Please sign in to comment.