Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
fix copy paste errors
  • Loading branch information
apopiak committed Jun 23, 2021
commit f8855d1f69c62fd0b2e6f703e801075cae8f8b31
6 changes: 3 additions & 3 deletions xcm/xcm-executor/src/traits/transact_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl TransactAsset for Tuple {
}
fn deposit_asset(what: &MultiAsset, who: &MultiLocation) -> XcmResult {
for_tuples!( #(
match Tuple::deposit_asset(origin, what) {
match Tuple::deposit_asset(what, who) {
Err(XcmError::AssetNotFound) => (),
r => return r,
}
Expand All @@ -130,7 +130,7 @@ impl TransactAsset for Tuple {
}
fn withdraw_asset(what: &MultiAsset, who: &MultiLocation) -> Result<Assets, XcmError> {
for_tuples!( #(
match Tuple::transfer_asset(origin, what) {
match Tuple::withdraw_asset(what, who) {
Err(XcmError::AssetNotFound) => (),
r => return r,
}
Expand All @@ -139,7 +139,7 @@ impl TransactAsset for Tuple {
}
fn transfer_asset(what: &MultiAsset, from: &MultiLocation, to: &MultiLocation) -> Result<Assets, XcmError> {
for_tuples!( #(
match Tuple::transfer_asset(origin, what) {
match Tuple::transfer_asset(what, from, to) {
Err(XcmError::AssetNotFound) => (),
r => return r,
}
Expand Down