From a18fdcaf8f714f334520625a46e643829835c7fe Mon Sep 17 00:00:00 2001 From: metricaez Date: Thu, 21 Dec 2023 12:16:44 -0300 Subject: [PATCH] fix fungibles benchmark --- runtime/trappist/src/lib.rs | 2 +- runtime/trappist/src/xcm_config.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/runtime/trappist/src/lib.rs b/runtime/trappist/src/lib.rs index a30ead6c..7d8920e6 100644 --- a/runtime/trappist/src/lib.rs +++ b/runtime/trappist/src/lib.rs @@ -1149,7 +1149,7 @@ impl_runtime_apis! { parameter_types! { pub ExistentialDepositMultiAsset: Option = Some(( - RelayLocation::get(), + SelfReserve::get(), ExistentialDeposit::get() ).into()); } diff --git a/runtime/trappist/src/xcm_config.rs b/runtime/trappist/src/xcm_config.rs index 285bed1a..59c7506b 100644 --- a/runtime/trappist/src/xcm_config.rs +++ b/runtime/trappist/src/xcm_config.rs @@ -61,7 +61,7 @@ parameter_types! { pub const RelayNetwork: NetworkId = NetworkId::Rococo; pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into(); - pub SelfReserve: MultiLocation = MultiLocation { parents:0, interior: Here }; + pub SelfReserve: MultiLocation = MultiLocation::here(); pub AssetsPalletLocation: MultiLocation = PalletInstance(::index() as u8).into(); // Be mindful with incoming teleports if you implement this @@ -184,7 +184,8 @@ pub type XcmOriginToTransactDispatchOrigin = ( parameter_types! { /// The asset ID for the asset that we use to pay for message delivery fees. - pub FeeAssetId: AssetId = Concrete(RelayLocation::get()); + /// TODO: Check if correct, previously was RelayLocation but AssetTransactor couldn't handle it. + pub FeeAssetId: AssetId = Concrete(SelfReserve::get()); /// The base fee for the message delivery fees. pub const BaseDeliveryFee: u128 = CENTS.saturating_mul(3); }