Allow Sufficient Assets for XCM Fee Payment on Statemint #1884 (#1910)

* Allow Sufficient Assets for XCM Fee Payment on Statemint #1884

* Revert of removed payment.clone().into()

* Fixes

* Bring AssetFeeAsExistentialDepositMultiplier to test_asset_xcm_trader

* Fixes
This commit is contained in:
Branislav Kontur
2022-11-28 17:04:30 +01:00
committed by EgorPopelyaev
parent 7aaaf45330
commit 5b3c32ace1
8 changed files with 602 additions and 68 deletions
+2 -1
View File
@@ -71,7 +71,7 @@ struct AssetTraderRefunder {
outstanding_concrete_asset: MultiAsset,
}
/// Charges for exercution in the first multiasset of those selected for fee payment
/// Charges for execution in the first multiasset of those selected for fee payment
/// Only succeeds for Concrete Fungible Assets
/// First tries to convert the this MultiAsset into a local assetId
/// Then charges for this assetId as described by FeeCharger
@@ -121,6 +121,7 @@ impl<
let weight = Weight::from_ref_time(weight);
// We take the very first multiasset from payment
// (assets are sorted by fungibility/amount after this conversion)
let multiassets: MultiAssets = payment.clone().into();
// Take the first multiasset from the selected MultiAssets