paritytech / trappist

Apache License 2.0
81 stars 17 forks source link

add WithUniqueTopic wrapper in Trappist and Stout xcm routers #345

Open XY-Wang opened 2 months ago

XY-Wang commented 2 months ago

This PR adds the WithUniqueTopic wrapper, introduced in https://github.com/paritytech/polkadot/pull/7234, to the Trappist and Stout XCM routers to ensure that all XCMs are appended with a SetTopic instruction.

This 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