From 0d33404e71db15120519566dfade77dd36bd477c Mon Sep 17 00:00:00 2001 From: Alistair Singh Date: Wed, 20 Dec 2023 12:59:56 +0200 Subject: [PATCH] fix comments --- .../bridge-hub-rococo/src/xcm_config.rs | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs index 2a97105cad9d8..241427365cf3a 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs @@ -294,7 +294,7 @@ impl xcm_executor::Config for XcmConfig { MaxInstructions, >; type Trader = - UsingComponents>; + UsingComponents>; type ResponseHandler = PolkadotXcm; type AssetTrap = PolkadotXcm; type AssetLocker = (); @@ -336,7 +336,7 @@ impl xcm_executor::Config for XcmConfig { } pub type PriceForParentDelivery = -ExponentialPrice; + ExponentialPrice; /// Converts a local signed origin into an XCM multilocation. /// Forms the basis for local origins sending/executing XCMs. @@ -388,8 +388,8 @@ impl cumulus_pallet_xcm::Config for Runtime { type XcmExecutor = XcmExecutor; } -/// Creates an AgentId from a MultiLocation. An AgentId is a unique mapping to a Agent contract -/// which acts as the sovereign account for the MultiLocation. +/// Creates an AgentId from a MultiLocation. An AgentId is a unique mapping to a Agent contract on +/// Ethereum which acts as the sovereign account for the MultiLocation. pub type AgentIdOf = HashedDescription)>; /// A `HandleFee` implementation that simply deposits the fees for `ExportMessage` XCM instructions @@ -404,19 +404,19 @@ pub struct XcmExportFeeToRelayerRewardAccounts< >(PhantomData<(AssetTransactor, DestNetwork, DestParaId, DestBridgedChainId, BridgeLaneId)>); impl< - AssetTransactor: TransactAsset, - DestNetwork: Get, - DestParaId: Get, - DestBridgedChainId: Get, - BridgeLaneId: Get, -> HandleFee -for XcmExportFeeToRelayerRewardAccounts< - AssetTransactor, - DestNetwork, - DestParaId, - DestBridgedChainId, - BridgeLaneId, -> + AssetTransactor: TransactAsset, + DestNetwork: Get, + DestParaId: Get, + DestBridgedChainId: Get, + BridgeLaneId: Get, + > HandleFee + for XcmExportFeeToRelayerRewardAccounts< + AssetTransactor, + DestNetwork, + DestParaId, + DestBridgedChainId, + BridgeLaneId, + > { fn handle_fee( fee: MultiAssets, @@ -489,7 +489,7 @@ pub struct XcmFeeManagerFromComponentsBridgeHub( PhantomData<(WaivedLocations, HandleFee)>, ); impl, FeeHandler: HandleFee> FeeManager -for XcmFeeManagerFromComponentsBridgeHub + for XcmFeeManagerFromComponentsBridgeHub { fn is_waived(origin: Option<&MultiLocation>, fee_reason: FeeReason) -> bool { let Some(loc) = origin else { return false };