Skip to content
Snippets Groups Projects
Commit e0b42dfa authored by Serban Iorga's avatar Serban Iorga Committed by Bastian Köcher
Browse files

Follow-up on #1518 (#1546)


* Adjustments for the xcm messages sending logic

Signed-off-by: default avatarSerban Iorga <serban@parity.io>

* Deduplicate XCM destination

Signed-off-by: default avatarSerban Iorga <serban@parity.io>

* [send_message] small changes

Signed-off-by: default avatarSerban Iorga <serban@parity.io>

* Define CustomNetworkId

Right now we use some associations between Rialto, RialtoParachain and
Millau chains and chains defined in the NetworkId enum. But if we are
not carreful we might do mistakes like:
In Millau:
pub const ThisNetwork: NetworkId = Kusama;
pub const RialtoNetwork: NetworkId = Polkadot;
In Rialto:
pub const ThisNetwork: NetworkId = Kusama;
pub const MillauNetwork: NetworkId = Polkadot;

We're introducing CustomNetworkId to have a centralized mapping between
NetworkId chains and our custom chains.

Signed-off-by: default avatarSerban Iorga <serban@parity.io>

* Revert "Deduplicate XCM destination"

This reverts commit 3a0a950e1d7484e3ecac45f5c00b152f0485cd11.

Signed-off-by: default avatarSerban Iorga <serban@parity.io>
parent 050b12f3
Showing with 89 additions and 72 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment