From 966b20f8d386f219ed65d97cf0ec698a082702d7 Mon Sep 17 00:00:00 2001 From: EleisonC Date: Wed, 5 Feb 2025 01:56:12 +0300 Subject: [PATCH] add fix AH westend --- .../runtimes/assets/asset-hub-westend/src/lib.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs index 8c751374f8a6..c3439a4b923e 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs @@ -1453,6 +1453,11 @@ mod benches { ); } +#[cfg(feature = "runtime-benchmarks")] +pub const RANDOM_PARA_ID: ParaId = ParaId::new(43211234); + + + impl_runtime_apis! { impl sp_consensus_aura::AuraApi for Runtime { fn slot_duration() -> sp_consensus_aura::SlotDuration { @@ -1879,8 +1884,10 @@ impl_runtime_apis! { ExistentialDeposit::get() ).into()); - pub const RandomParaId: ParaId = ParaId::new(43211234); - pub RandomParaLocation: Location = ParentThen(Parachain(RandomParaId::get().into()).into()).into(); + pub RandomParaLocation: Location = Location::new( + 1, // parents: 1 (Relay Chain) + [Parachain(RANDOM_PARA_ID.into())] // interior: Parachain(43211234) + ); } use pallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;