Revert "Fix max-size messages at test chains (#2064)" (#2077)

This reverts commit f904623c65fbad542a878133c612b1f8782f47d1.
This commit is contained in:
Svyatoslav Nikolsky
2023-04-26 14:42:53 +03:00
committed by Bastian Köcher
parent dc61bcdc01
commit 1f8b4d989e
6 changed files with 31 additions and 160 deletions
-14
View File
@@ -159,21 +159,7 @@ pub enum CustomNetworkId {
RialtoParachain,
}
impl TryFrom<bp_runtime::ChainId> for CustomNetworkId {
type Error = ();
fn try_from(chain: bp_runtime::ChainId) -> Result<Self, Self::Error> {
Ok(match chain {
bp_runtime::MILLAU_CHAIN_ID => Self::Millau,
bp_runtime::RIALTO_CHAIN_ID => Self::Rialto,
bp_runtime::RIALTO_PARACHAIN_CHAIN_ID => Self::RialtoParachain,
_ => return Err(()),
})
}
}
impl CustomNetworkId {
/// Converts self to XCM' network id.
pub const fn as_network_id(&self) -> NetworkId {
match *self {
CustomNetworkId::Millau => NetworkId::Kusama,