Skip to content

add WithUniqueTopic wrapper to xcm router#1602

Merged
ark930 merged 1 commit intobifrost-io:v0.16.2from
sodazone:xcm-with-unique-topic
Jan 20, 2025
Merged

add WithUniqueTopic wrapper to xcm router#1602
ark930 merged 1 commit intobifrost-io:v0.16.2from
sodazone:xcm-with-unique-topic

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
@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