Skip to content

Commit

Permalink
add fix AH westend
Browse files Browse the repository at this point in the history
  • Loading branch information
EleisonC committed Feb 4, 2025
1 parent 597f9e7 commit 966b20f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Block, AuraId> for Runtime {
fn slot_duration() -> sp_consensus_aura::SlotDuration {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 966b20f

Please sign in to comment.