Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add WithUniqueTopic wrapper to xcm router #1602

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

XY-Wang
Copy link

@XY-Wang XY-Wang commented Jan 8, 2025

This PR adds the WithUniqueTopic wrapper, introduced in paritytech/polkadot#7234, to the XCM Router.

This ensures that each XCM is appended with a unique topic ID and will allow for easier tracking of XCM, especially in the case of multi-hop messages where the message hash differs on each leg.

More detailed explanation: https://substrate.stackexchange.com/questions/1893/is-there-an-id-for-xcm-message/1906#1906

The implementation mirrors that of the system parachains:

https://github.com/polkadot-fellows/runtimes/blob/7b096c14c2b16cc81ca4e2188eea9103f120b7a4/system-parachains/asset-hubs/asset-hub-polkadot/src/xcm_config.rs#L295

https://github.com/polkadot-fellows/runtimes/blob/7b096c14c2b16cc81ca4e2188eea9103f120b7a4/system-parachains/asset-hubs/asset-hub-polkadot/src/xcm_config.rs#L477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant