Skip to content

Commit

Permalink
configure XcmRecorder for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzamontiel committed Oct 1, 2024
1 parent 09eddbd commit 966083a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions runtime/moonbase/tests/xcm_mock/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl Config for XcmConfig {
type HrmpNewChannelOpenRequestHandler = ();
type HrmpChannelAcceptedHandler = ();
type HrmpChannelClosingHandler = ();
type XcmRecorder = PolkadotXcm;
type XcmRecorder = XcmPallet;
}

pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, KusamaNetwork>;
Expand Down Expand Up @@ -294,7 +294,7 @@ impl hrmp::Config for Runtime {
type WeightInfo = TestHrmpWeightInfo;
type ChannelManager = frame_system::EnsureRoot<AccountId>;
type DefaultChannelSizeAndCapacityWithSystem = DefaultChannelSizeAndCapacityWithSystem;
type VersionWrapper = PolkadotXcm;
type VersionWrapper = XcmPallet;
}

impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime
Expand Down Expand Up @@ -374,7 +374,6 @@ pub(crate) fn relay_events() -> Vec<RuntimeEvent> {
.collect::<Vec<_>>()
}

use crate::xcm_mock::statemint_like::PolkadotXcm;
use frame_support::traits::{OnFinalize, OnInitialize};

pub(crate) fn relay_roll_to(n: BlockNumber) {
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbeam/tests/xcm_mock/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbeam/tests/xcm_mock/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl Config for XcmConfig {
type HrmpNewChannelOpenRequestHandler = ();
type HrmpChannelAcceptedHandler = ();
type HrmpChannelClosingHandler = ();
type XcmRecorder = ();
type XcmRecorder = XcmPallet;
}

pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, KusamaNetwork>;
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbeam/tests/xcm_mock/statemint_like.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonriver/tests/xcm_mock/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl Config for XcmConfig {
type HrmpNewChannelOpenRequestHandler = ();
type HrmpChannelAcceptedHandler = ();
type HrmpChannelClosingHandler = ();
type XcmRecorder = ();
type XcmRecorder = XcmPallet;
}

pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, KusamaNetwork>;
Expand Down

0 comments on commit 966083a

Please sign in to comment.