Skip to content

Commit

Permalink
XcmRecorder integration test from Runtime XcmConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Sep 12, 2024
1 parent fd33f7c commit e593d3b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/astar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AssetId, XcAssetConfig>;

Expand Down
2 changes: 1 addition & 1 deletion runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AssetId, XcAssetConfig>;

Expand Down
2 changes: 1 addition & 1 deletion runtime/shiden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AssetId, XcAssetConfig>;

Expand Down
6 changes: 3 additions & 3 deletions tests/integration/src/xcm_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Runtime>::should_record();
let result = <xcm_config::XcmConfig as xcm_executor::Config>::XcmRecorder::should_record();
assert!(
!result,
"XCM recorder should NOT record incoming XCMs by default."
);

pallet_xcm::Pallet::<Runtime>::set_record_xcm(true);
let result = pallet_xcm::Pallet::<Runtime>::should_record();
<xcm_config::XcmConfig as xcm_executor::Config>::XcmRecorder::set_record_xcm(true);
let result = <xcm_config::XcmConfig as xcm_executor::Config>::XcmRecorder::should_record();
assert!(
result,
"XCM recorder must be ready to record incoming XCMs."
Expand Down

0 comments on commit e593d3b

Please sign in to comment.