From c42bc739a19048d2180537edc184094a60b270ff Mon Sep 17 00:00:00 2001 From: Xueying Wang Date: Mon, 20 Jan 2025 09:02:33 +0100 Subject: [PATCH] add WithUniqueTopic wrapper to xcm router (#1602) --- runtime/bifrost-kusama/src/xcm_config.rs | 8 +++++--- runtime/bifrost-polkadot/src/xcm_config.rs | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/runtime/bifrost-kusama/src/xcm_config.rs b/runtime/bifrost-kusama/src/xcm_config.rs index 20dceca6eb..ea178b2d89 100644 --- a/runtime/bifrost-kusama/src/xcm_config.rs +++ b/runtime/bifrost-kusama/src/xcm_config.rs @@ -51,7 +51,9 @@ use pallet_xcm::XcmPassthrough; use parachains_common::message_queue::{NarrowOriginToSibling, ParaIdToSibling}; use polkadot_runtime_common::xcm_sender::NoPriceForMessageDelivery; use xcm::v4::{prelude::*, Location}; -use xcm_builder::{FrameTransactionalProcessor, TrailingSetTopicAsId, WithComputedOrigin}; +use xcm_builder::{ + FrameTransactionalProcessor, TrailingSetTopicAsId, WithComputedOrigin, WithUniqueTopic, +}; parameter_types! { pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); @@ -290,12 +292,12 @@ pub type LocalOriginToLocation = SignedToAccountId32, // ..and XCMP to communicate with the sibling chains. XcmpQueue, -); +)>; #[cfg(feature = "runtime-benchmarks")] parameter_types! { diff --git a/runtime/bifrost-polkadot/src/xcm_config.rs b/runtime/bifrost-polkadot/src/xcm_config.rs index a21cd93cd1..853885d280 100644 --- a/runtime/bifrost-polkadot/src/xcm_config.rs +++ b/runtime/bifrost-polkadot/src/xcm_config.rs @@ -50,7 +50,7 @@ pub use xcm_builder::{ }; use xcm_builder::{ DescribeAllTerminal, DescribeFamily, FrameTransactionalProcessor, HashedDescription, - TrailingSetTopicAsId, WithComputedOrigin, + TrailingSetTopicAsId, WithComputedOrigin, WithUniqueTopic, }; parameter_types! { @@ -289,12 +289,12 @@ pub type LocalOriginToLocation = SignedToAccountId32, // ..and XCMP to communicate with the sibling chains. XcmpQueue, -); +)>; #[cfg(feature = "runtime-benchmarks")] parameter_types! {