From e593d3b8bc599be7bdb40e3284f3e85a714a9b93 Mon Sep 17 00:00:00 2001 From: Igor Papandinas <26460174+ipapandinas@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:30:59 +0200 Subject: [PATCH] XcmRecorder integration test from Runtime XcmConfig --- runtime/astar/src/lib.rs | 2 +- runtime/shibuya/src/lib.rs | 2 +- runtime/shiden/src/lib.rs | 2 +- tests/integration/src/xcm_api.rs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/astar/src/lib.rs b/runtime/astar/src/lib.rs index ed3545789..43a100dee 100644 --- a/runtime/astar/src/lib.rs +++ b/runtime/astar/src/lib.rs @@ -108,7 +108,7 @@ mod chain_extensions; pub mod genesis_config; mod precompiles; mod weights; -mod xcm_config; +pub mod xcm_config; pub type AstarAssetLocationIdConverter = AssetLocationIdConverter; diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index 72be7c2ba..eb078daeb 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -120,7 +120,7 @@ mod chain_extensions; pub mod genesis_config; mod precompiles; mod weights; -mod xcm_config; +pub mod xcm_config; pub type ShibuyaAssetLocationIdConverter = AssetLocationIdConverter; diff --git a/runtime/shiden/src/lib.rs b/runtime/shiden/src/lib.rs index 73aa01f8e..5f5541a10 100644 --- a/runtime/shiden/src/lib.rs +++ b/runtime/shiden/src/lib.rs @@ -109,7 +109,7 @@ mod chain_extensions; pub mod genesis_config; mod precompiles; mod weights; -mod xcm_config; +pub mod xcm_config; pub type ShidenAssetLocationIdConverter = AssetLocationIdConverter; diff --git a/tests/integration/src/xcm_api.rs b/tests/integration/src/xcm_api.rs index 586ae5eaf..0686e7e83 100644 --- a/tests/integration/src/xcm_api.rs +++ b/tests/integration/src/xcm_api.rs @@ -236,14 +236,14 @@ fn dry_run_xcm_is_ok() { #[test] fn xcm_recorder_configuration_is_ok() { new_test_ext().execute_with(|| { - let result = pallet_xcm::Pallet::::should_record(); + let result = ::XcmRecorder::should_record(); assert!( !result, "XCM recorder should NOT record incoming XCMs by default." ); - pallet_xcm::Pallet::::set_record_xcm(true); - let result = pallet_xcm::Pallet::::should_record(); + ::XcmRecorder::set_record_xcm(true); + let result = ::XcmRecorder::should_record(); assert!( result, "XCM recorder must be ready to record incoming XCMs."