diff --git a/parachains/runtimes/assets/westmint/src/xcm_config.rs b/parachains/runtimes/assets/westmint/src/xcm_config.rs index b7e2c9ca25..29ba8304b6 100644 --- a/parachains/runtimes/assets/westmint/src/xcm_config.rs +++ b/parachains/runtimes/assets/westmint/src/xcm_config.rs @@ -51,6 +51,7 @@ parameter_types! { pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); pub UniversalLocation: InteriorMultiLocation = Parachain(ParachainInfo::parachain_id().into()).into(); pub const Local: MultiLocation = Here.into_location(); + // todo: accept all instances, perhaps need a type for each instance? pub AssetsPalletLocation: MultiLocation = PalletInstance(::index() as u8).into(); pub CheckingAccount: AccountId = PolkadotXcm::check_account(); @@ -85,12 +86,12 @@ pub type CurrencyTransactor = CurrencyAdapter< /// Means for transacting assets besides the native currency on this chain. pub type FungiblesTransactor = FungiblesAdapter< // Use this fungibles implementation: - TrustBackedAssets, + TrustBackedAssets, // todo: accept all instances // Use this currency when it is a fungible asset matching the given location or name: ConvertedConcreteId< AssetId, Balance, - AsPrefixedGeneralIndex, + AsPrefixedGeneralIndex, // todo: accept all instances JustTry, >, // Convert an XCM MultiLocation into a local account id: @@ -99,7 +100,7 @@ pub type FungiblesTransactor = FungiblesAdapter< AccountId, // We only want to allow teleports of known assets. We use non-zero issuance as an indication // that this asset is known. - parachains_common::impls::NonZeroIssuance, + parachains_common::impls::NonZeroIssuance, // todo: accept all instances // The account to use for tracking teleports. CheckingAccount, >; @@ -187,10 +188,10 @@ impl xcm_executor::Config for XcmConfig { ConvertedConcreteId< AssetId, Balance, - AsPrefixedGeneralIndex, + AsPrefixedGeneralIndex, // todo: accept all instances JustTry, >, - TrustBackedAssets, + TrustBackedAssets, // todo: accept all instances cumulus_primitives_utility::XcmFeesTo32ByteAccount< FungiblesTransactor, AccountId,