[WIP] pallet-xcm: API changes to use VersionedAssetId instead of u32 to specify asset for fees
#10243
+682
−612
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Multiple pallet-xcm calls use
u32index as a way to specify which asset from theassets(also an arg of the call) is to be used for fees purposes. This PR brings major API change (breaking change) that proposes usage ofVersionedAssetIdinsteadAffected pallet-xcm calls:
teleport_assets,reserve_transfer_assets,limited_reserve_transfer_assets,limited_teleport_assets,transfer_assetsThis is follow-up change to the: #9842, that aims to remove the requirement of the client to provide sorted list of Assets to the APIs (often a point failures). With the mentioned change sorting happens on the runtime side and
u32index (provided by the client) can become invalid after sorting (this PR aims that problem)Relevant dicussion on XCM public element channel