From 966083ab865056be6d4afd2e6d2e3767f5064348 Mon Sep 17 00:00:00 2001 From: Gonza Montiel Date: Tue, 1 Oct 2024 20:12:06 +0200 Subject: [PATCH] configure XcmRecorder for mocks --- runtime/moonbase/tests/xcm_mock/relay_chain.rs | 5 ++--- runtime/moonbeam/tests/xcm_mock/parachain.rs | 2 +- runtime/moonbeam/tests/xcm_mock/relay_chain.rs | 2 +- runtime/moonbeam/tests/xcm_mock/statemint_like.rs | 2 +- runtime/moonriver/tests/xcm_mock/relay_chain.rs | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/runtime/moonbase/tests/xcm_mock/relay_chain.rs b/runtime/moonbase/tests/xcm_mock/relay_chain.rs index 93a358d9fb..290b1f5786 100644 --- a/runtime/moonbase/tests/xcm_mock/relay_chain.rs +++ b/runtime/moonbase/tests/xcm_mock/relay_chain.rs @@ -213,7 +213,7 @@ impl Config for XcmConfig { type HrmpNewChannelOpenRequestHandler = (); type HrmpChannelAcceptedHandler = (); type HrmpChannelClosingHandler = (); - type XcmRecorder = PolkadotXcm; + type XcmRecorder = XcmPallet; } pub type LocalOriginToLocation = SignedToAccountId32; @@ -294,7 +294,7 @@ impl hrmp::Config for Runtime { type WeightInfo = TestHrmpWeightInfo; type ChannelManager = frame_system::EnsureRoot; type DefaultChannelSizeAndCapacityWithSystem = DefaultChannelSizeAndCapacityWithSystem; - type VersionWrapper = PolkadotXcm; + type VersionWrapper = XcmPallet; } impl frame_system::offchain::SendTransactionTypes for Runtime @@ -374,7 +374,6 @@ pub(crate) fn relay_events() -> Vec { .collect::>() } -use crate::xcm_mock::statemint_like::PolkadotXcm; use frame_support::traits::{OnFinalize, OnInitialize}; pub(crate) fn relay_roll_to(n: BlockNumber) { diff --git a/runtime/moonbeam/tests/xcm_mock/parachain.rs b/runtime/moonbeam/tests/xcm_mock/parachain.rs index 881ca98cb2..77beff13f9 100644 --- a/runtime/moonbeam/tests/xcm_mock/parachain.rs +++ b/runtime/moonbeam/tests/xcm_mock/parachain.rs @@ -368,7 +368,7 @@ impl Config for XcmConfig { type HrmpNewChannelOpenRequestHandler = (); type HrmpChannelAcceptedHandler = (); type HrmpChannelClosingHandler = (); - type XcmRecorder = (); + type XcmRecorder = PolkadotXcm; } impl cumulus_pallet_xcm::Config for Runtime { diff --git a/runtime/moonbeam/tests/xcm_mock/relay_chain.rs b/runtime/moonbeam/tests/xcm_mock/relay_chain.rs index 24c9f0c47a..cf5d3ca5ce 100644 --- a/runtime/moonbeam/tests/xcm_mock/relay_chain.rs +++ b/runtime/moonbeam/tests/xcm_mock/relay_chain.rs @@ -213,7 +213,7 @@ impl Config for XcmConfig { type HrmpNewChannelOpenRequestHandler = (); type HrmpChannelAcceptedHandler = (); type HrmpChannelClosingHandler = (); - type XcmRecorder = (); + type XcmRecorder = XcmPallet; } pub type LocalOriginToLocation = SignedToAccountId32; diff --git a/runtime/moonbeam/tests/xcm_mock/statemint_like.rs b/runtime/moonbeam/tests/xcm_mock/statemint_like.rs index 71a522c3e6..bc27a84ac0 100644 --- a/runtime/moonbeam/tests/xcm_mock/statemint_like.rs +++ b/runtime/moonbeam/tests/xcm_mock/statemint_like.rs @@ -348,7 +348,7 @@ impl Config for XcmConfig { type HrmpNewChannelOpenRequestHandler = (); type HrmpChannelAcceptedHandler = (); type HrmpChannelClosingHandler = (); - type XcmRecorder = (); + type XcmRecorder = PolkadotXcm; } /// No local origins on this chain are allowed to dispatch XCM sends/executions. diff --git a/runtime/moonriver/tests/xcm_mock/relay_chain.rs b/runtime/moonriver/tests/xcm_mock/relay_chain.rs index 24c9f0c47a..cf5d3ca5ce 100644 --- a/runtime/moonriver/tests/xcm_mock/relay_chain.rs +++ b/runtime/moonriver/tests/xcm_mock/relay_chain.rs @@ -213,7 +213,7 @@ impl Config for XcmConfig { type HrmpNewChannelOpenRequestHandler = (); type HrmpChannelAcceptedHandler = (); type HrmpChannelClosingHandler = (); - type XcmRecorder = (); + type XcmRecorder = XcmPallet; } pub type LocalOriginToLocation = SignedToAccountId32;