Skip to content

Commit

Permalink
fixup: auto format Rust code
Browse files Browse the repository at this point in the history
  • Loading branch information
oak-code-formatter committed Nov 16, 2023
1 parent 1500299 commit 9d183cc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pallets/xcmp-handler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ pub mod pallet {
]);
let target_xcm = Xcm(vec![
ReserveAssetDeposited::<()>(target_asset.clone().into()),
BuyExecution::<()> { fees: target_asset, weight_limit: Limited(overall_weight) },
BuyExecution::<()> {
fees: target_asset,
weight_limit: Limited(overall_weight),
},
DescendOrigin::<()>(descend_location),
Transact::<()> {
origin_kind: OriginKind::SovereignAccount,
Expand All @@ -321,7 +324,10 @@ pub mod pallet {
]);
let target_xcm = Xcm(vec![
WithdrawAsset::<()>(target_asset.clone().into()),
BuyExecution::<()> { fees: target_asset, weight_limit: Limited(overall_weight) },
BuyExecution::<()> {
fees: target_asset,
weight_limit: Limited(overall_weight),
},
DescendOrigin::<()>(descend_location),
Transact::<()> {
origin_kind: OriginKind::SovereignAccount,
Expand All @@ -336,7 +342,7 @@ pub mod pallet {
]);
(local_xcm, target_xcm)
} else {
return Err(Error::<T>::UnsupportedFeePayment.into());
return Err(Error::<T>::UnsupportedFeePayment.into())
};

Ok((local_xcm, target_xcm))
Expand Down

0 comments on commit 9d183cc

Please sign in to comment.