claim_assets
doesn't work if the trapped asset can't be used to pay for execution fees.
#4433
Labels
T6-XCM
This PR/Issue is related to XCM.
The
claim_assets
extrinsics claims in the simplest way possible, it just grabs the asset, uses it to pay execution fees, and deposits it on the beneficiary account.This assumes the asset can be used to pay for fees, which might not be the case, i.e. an NFT or a fungible token without a pool.
The extrinsic creates the following program:
It could be fixed by changing that to the following program:
We could probably pass in a
fees
parameter that could beNone
to use the same assets for fees.Sadly, this would be a breaking change.
We could add a new extrinsic
claim_assets_with
(orclaim_not_sufficient_assets
) that takes thisfees
parameter (not necessarily an option since we already have the other extrinsic).The text was updated successfully, but these errors were encountered: