Skip to content

Conversation

@karolk91
Copy link
Contributor

@karolk91 karolk91 commented Nov 7, 2025

Multiple pallet-xcm calls use u32 index as a way to specify which asset from the assets (also an arg of the call) is to be used for fees purposes. This PR brings major API change (breaking change) that proposes usage of VersionedAssetId instead

Affected pallet-xcm calls: teleport_assets, reserve_transfer_assets, limited_reserve_transfer_assets, limited_teleport_assets, transfer_assets

This 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 u32 index (provided by the client) can become invalid after sorting (this PR aims that problem)

Relevant dicussion on XCM public element channel

@karolk91 karolk91 self-assigned this Nov 7, 2025
@karolk91 karolk91 added the T6-XCM This PR/Issue is related to XCM. label Nov 7, 2025
@karolk91
Copy link
Contributor Author

karolk91 commented Nov 7, 2025

/cmd prdoc --audience runtime_dev --audience runtime_user --bump major

…time_dev --audience runtime_user --bump major'
@karolk91 karolk91 changed the title pallet-xcm: API changes to use VersionedAssetId instead of u32 to specify asset for fees [WIP] pallet-xcm: API changes to use VersionedAssetId instead of u32 to specify asset for fees Nov 7, 2025
@karolk91 karolk91 marked this pull request as ready for review November 7, 2025 14:19
@karolk91 karolk91 requested review from a team as code owners November 7, 2025 14:19
@paritytech-review-bot paritytech-review-bot bot requested a review from a team November 7, 2025 14:20
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/19171601117
Failed job name: build-rustdoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T6-XCM This PR/Issue is related to XCM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants