diff --git a/bridges/modules/xcm-bridge-hub/src/mock.rs b/bridges/modules/xcm-bridge-hub/src/mock.rs index 4fc38e18deca..628f69e9866a 100644 --- a/bridges/modules/xcm-bridge-hub/src/mock.rs +++ b/bridges/modules/xcm-bridge-hub/src/mock.rs @@ -249,7 +249,9 @@ impl crate::benchmarking::Config<()> for TestRuntime { /// the `MessageExporter`. This means that the router sends an `ExportMessage`. pub type XcmOverBridgeWrappedWithExportMessageRouterInstance = (); #[derive_impl(pallet_xcm_bridge_hub_router::config_preludes::TestDefaultConfig)] -impl pallet_xcm_bridge_hub_router::Config for TestRuntime { +impl pallet_xcm_bridge_hub_router::Config + for TestRuntime +{ // We use `SovereignPaidRemoteExporter` here to test and ensure that the `ExportMessage` // produced by `pallet_xcm_bridge_hub_router` is compatible with the `ExportXcm` implementation // of `pallet_xcm_bridge_hub`. @@ -562,7 +564,7 @@ impl Convert, Xcm<()>> for UpdateBridgeStatusXcmProvider { Transact { origin_kind: OriginKind::Xcm, fallback_max_weight: Some(Weight::from_parts(200_000_000, 6144)), - call: encoded_call.into() + call: encoded_call.into(), }, ExpectTransactStatus(MaybeErrorCode::Success), ]) diff --git a/bridges/primitives/xcm-bridge-hub-router/src/lib.rs b/bridges/primitives/xcm-bridge-hub-router/src/lib.rs index 28561d5940f0..6d0518f02403 100644 --- a/bridges/primitives/xcm-bridge-hub-router/src/lib.rs +++ b/bridges/primitives/xcm-bridge-hub-router/src/lib.rs @@ -72,4 +72,4 @@ pub enum XcmBridgeHubRouterCall { /// `pallet-xcm-bridge-hub-router::Call::report_bridge_status` #[codec(index = 0)] report_bridge_status { bridge_id: BridgeId, is_congested: bool }, -} \ No newline at end of file +} diff --git a/cumulus/parachains/runtimes/assets/asset-hub-rococo/tests/tests.rs b/cumulus/parachains/runtimes/assets/asset-hub-rococo/tests/tests.rs index ad4da7e15c4c..97f101364b19 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-rococo/tests/tests.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-rococo/tests/tests.rs @@ -1251,11 +1251,9 @@ mod asset_hub_rococo_tests { XcmConfig, LocationToAccountId, ToWestendXcmRouterInstance, - >( - collator_session_keys(), - bridging_to_asset_hub_westend, - |bridge_id, is_congested| bp_asset_hub_rococo::build_congestion_message(bridge_id.inner(), is_congested).into(), - ) + >(collator_session_keys(), bridging_to_asset_hub_westend, |bridge_id, is_congested| { + bp_asset_hub_rococo::build_congestion_message(bridge_id.inner(), is_congested).into() + }) } #[test] diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/tests/tests.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/tests/tests.rs index 29cd0f2b8119..354c952fc7c5 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/tests/tests.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/tests/tests.rs @@ -1258,11 +1258,9 @@ fn update_bridge_status_from_xcm_bridge_router_for_rococo_works() { XcmConfig, LocationToAccountId, ToRococoXcmRouterInstance, - >( - collator_session_keys(), - bridging_to_asset_hub_rococo, - |bridge_id, is_congested| bp_asset_hub_westend::build_congestion_message(bridge_id.inner(), is_congested).into() - ) + >(collator_session_keys(), bridging_to_asset_hub_rococo, |bridge_id, is_congested| { + bp_asset_hub_westend::build_congestion_message(bridge_id.inner(), is_congested).into() + }) } #[test] diff --git a/cumulus/parachains/runtimes/assets/test-utils/src/test_cases_over_bridge.rs b/cumulus/parachains/runtimes/assets/test-utils/src/test_cases_over_bridge.rs index e8feafd2ea12..2f3dc5432ea2 100644 --- a/cumulus/parachains/runtimes/assets/test-utils/src/test_cases_over_bridge.rs +++ b/cumulus/parachains/runtimes/assets/test-utils/src/test_cases_over_bridge.rs @@ -582,7 +582,8 @@ pub fn update_bridge_status_from_xcm_bridge_router_works< assert_ne!(is_congested_after, is_congested_before,); // TODO:revert-for-depracated-old - // assert_eq!(is_congested, pallet_xcm_bridge_hub_router::Pallet::::bridge().is_congested); + // assert_eq!(is_congested, pallet_xcm_bridge_hub_router::Pallet::::bridge().is_congested); }; update_bridge_status(true); diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/bridge_to_bulletin_config.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/bridge_to_bulletin_config.rs index 0b85249c02fd..e4576aaebb35 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/bridge_to_bulletin_config.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/bridge_to_bulletin_config.rs @@ -22,7 +22,7 @@ use crate::{ bridge_common_config::RelayersForPermissionlessLanesInstance, weights, xcm_config::UniversalLocation, AccountId, Balance, Balances, BridgeRococoBulletinGrandpa, - BridgeRococoBulletinMessages, Runtime, RuntimeEvent, RuntimeHoldReason, XcmOverRococoBulletin, + BridgeRococoBulletinMessages, Runtime, RuntimeEvent, RuntimeHoldReason, XcmOverRococoBulletin, XcmRouter, }; use bp_messages::{ diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/bridge_to_westend_config.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/bridge_to_westend_config.rs index 34647cc21ad5..96b08f5306b7 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/bridge_to_westend_config.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/bridge_to_westend_config.rs @@ -138,8 +138,10 @@ impl Convert, Xcm<()>> for UpdateBridgeStatusXcmProvider { UnpaidExecution { weight_limit: Unlimited, check_origin: None }, Transact { origin_kind: OriginKind::Xcm, - fallback_max_weight: Some(bp_asset_hub_rococo::XcmBridgeHubRouterTransactCallMaxWeight::get()), - call: encoded_call.into() + fallback_max_weight: Some( + bp_asset_hub_rococo::XcmBridgeHubRouterTransactCallMaxWeight::get(), + ), + call: encoded_call.into(), }, ExpectTransactStatus(MaybeErrorCode::Success), ]) diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/bridge_to_rococo_config.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/bridge_to_rococo_config.rs index af050339b530..11b96f17cfaa 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/bridge_to_rococo_config.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/bridge_to_rococo_config.rs @@ -169,8 +169,10 @@ impl Convert, Xcm<()>> for UpdateBridgeStatusXcmProvider { UnpaidExecution { weight_limit: Unlimited, check_origin: None }, Transact { origin_kind: OriginKind::Xcm, - fallback_max_weight: Some(bp_asset_hub_westend::XcmBridgeHubRouterTransactCallMaxWeight::get()), - call: encoded_call.into() + fallback_max_weight: Some( + bp_asset_hub_westend::XcmBridgeHubRouterTransactCallMaxWeight::get(), + ), + call: encoded_call.into(), }, ExpectTransactStatus(MaybeErrorCode::Success), ])