XcmPaymentApi::query_delivery_fees()
should allow querying fee using custom asset
#7061
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
C2-good-first-issue
A task for a first time contributor to become familiar with the Polkadot-SDK.
T6-XCM
This PR/Issue is related to XCM.
The current
XcmPaymentApi::query_delivery_fees()
strictly returns fee required in native assets.polkadot-sdk/polkadot/xcm/xcm-runtime-apis/src/fees.rs
Line 68 in 568231a
But the delivery fee can also be paid using assets other than native.
I suggest enhancing the API with an optional asset specifier so that users/dapps can directly query the fee in their desired asset:
or to be aligned with
XcmPaymentApi::query_weight_to_asset_fee()
The text was updated successfully, but these errors were encountered: