Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Dec 16, 2024
1 parent 867574d commit 24dab3c
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions polkadot/xcm/pallet-xcm/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ mod benchmarks {
.into();
let versioned_msg = VersionedXcm::from(msg);

// Ensure that origin can send to destination (e.g. setup delivery fees, ensure router setup, ...)
// Ensure that origin can send to destination
// (e.g. setup delivery fees, ensure router setup, ...)
T::DeliveryHelper::ensure_successful_delivery(
&Default::default(),
&versioned_dest.clone().try_into().unwrap(),
Expand Down Expand Up @@ -129,8 +130,8 @@ mod benchmarks {
return Err(BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX)))
}

// Ensure that origin can send to destination (e.g. setup delivery fees, ensure router
// setup, ...)
// Ensure that origin can send to destination
// (e.g. setup delivery fees, ensure router setup, ...)
let (_, _) = T::DeliveryHelper::ensure_successful_delivery(
&origin_location,
&destination,
Expand Down Expand Up @@ -199,8 +200,8 @@ mod benchmarks {
return Err(BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX)))
}

// Ensure that origin can send to destination (e.g. setup delivery fees, ensure router
// setup, ...)
// Ensure that origin can send to destination
// (e.g. setup delivery fees, ensure router setup, ...)
let (_, _) = T::DeliveryHelper::ensure_successful_delivery(
&origin_location,
&destination,
Expand Down Expand Up @@ -280,7 +281,8 @@ mod benchmarks {
AccountId32 { network: None, id: recipient.into() }.into();
let versioned_assets: VersionedAssets = assets.into();

// Ensure that origin can send to destination (e.g. setup delivery fees, ensure router setup, ...)
// Ensure that origin can send to destination
// (e.g. setup delivery fees, ensure router setup, ...)
T::DeliveryHelper::ensure_successful_delivery(
&Default::default(),
&versioned_dest.clone().try_into().unwrap(),
Expand Down Expand Up @@ -344,12 +346,13 @@ mod benchmarks {
.ok_or(BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX)))?
.into();

// Ensure that origin can send to destination (e.g. setup delivery fees, ensure router setup, ...)
T::DeliveryHelper::ensure_successful_delivery(
&Default::default(),
&versioned_loc.clone().try_into().unwrap(),
FeeReason::ChargeFees,
);
// Ensure that origin can send to destination
// (e.g. setup delivery fees, ensure router setup, ...)
T::DeliveryHelper::ensure_successful_delivery(
&Default::default(),
&versioned_loc.clone().try_into().unwrap(),
FeeReason::ChargeFees,
);

#[extrinsic_call]
_(RawOrigin::Root, Box::new(versioned_loc));
Expand All @@ -363,7 +366,8 @@ mod benchmarks {
.ok_or(BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX)))?;
let versioned_loc: VersionedLocation = loc.clone().into();

// Ensure that origin can send to destination (e.g. setup delivery fees, ensure router setup, ...)
// Ensure that origin can send to destination
// (e.g. setup delivery fees, ensure router setup, ...)
T::DeliveryHelper::ensure_successful_delivery(
&Default::default(),
&versioned_loc.clone().try_into().unwrap(),
Expand Down

0 comments on commit 24dab3c

Please sign in to comment.