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

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

XY-Wang
Copy link
Contributor

@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

@ark930 ark930 changed the base branch from develop to v0.16.2 January 20, 2025 08:01
@ark930 ark930 merged commit c42bc73 into bifrost-io:v0.16.2 Jan 20, 2025
1 check failed
@XY-Wang XY-Wang deleted the xcm-with-unique-topic branch January 20, 2025 10:52
Wsteth added a commit that referenced this pull request Jan 22, 2025
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.

2 participants