From 445f626c34bba963d202d4c6513a327e1298169a Mon Sep 17 00:00:00 2001 From: Guillaume Thiolliere Date: Tue, 30 Mar 2021 18:37:24 +0200 Subject: [PATCH] Fix usage (#2775) --- polkadot/xcm/xcm-builder/src/fungibles_adapter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/xcm/xcm-builder/src/fungibles_adapter.rs b/polkadot/xcm/xcm-builder/src/fungibles_adapter.rs index f3acaae206..3c4009a776 100644 --- a/polkadot/xcm/xcm-builder/src/fungibles_adapter.rs +++ b/polkadot/xcm/xcm-builder/src/fungibles_adapter.rs @@ -248,7 +248,7 @@ impl< let (asset_id, amount) = Matcher::matches_fungibles(what)?; let who = AccountIdConverter::from_location(who) .ok_or(Error::AccountIdConversionFailed)?; - Assets::deposit(asset_id, &who, amount) + Assets::mint_into(asset_id, &who, amount) .map_err(|e| XcmError::FailedToTransactAsset(e.into())) } @@ -260,7 +260,7 @@ impl< let (asset_id, amount) = Matcher::matches_fungibles(what)?; let who = AccountIdConverter::from_location(who) .ok_or(Error::AccountIdConversionFailed)?; - Assets::withdraw(asset_id, &who, amount) + Assets::burn_from(asset_id, &who, amount) .map_err(|e| XcmError::FailedToTransactAsset(e.into()))?; Ok(what.clone()) }