fix: add missing chain id match arms (#1411)

This commit is contained in:
Matthias Seitz 2022-06-23 17:02:52 +02:00 committed by GitHub
parent ec379da527
commit c7e1237a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -139,8 +139,9 @@ impl TryFrom<u64> for Chain {
43114 => Chain::Avalanche, 43114 => Chain::Avalanche,
43113 => Chain::AvalancheFuji, 43113 => Chain::AvalancheFuji,
11155111 => Chain::Sepolia, 11155111 => Chain::Sepolia,
1287 => Chain::Moonbeam, 1284 => Chain::Moonbeam,
1281 => Chain::MoonbeamDev, 1281 => Chain::Moonbase,
1287 => Chain::MoonbeamDev,
1285 => Chain::Moonriver, 1285 => Chain::Moonriver,
10 => Chain::Optimism, 10 => Chain::Optimism,
69 => Chain::OptimismKovan, 69 => Chain::OptimismKovan,
@ -156,6 +157,8 @@ impl TryFrom<u64> for Chain {
26863 => Chain::Oasis, 26863 => Chain::Oasis,
42262 => Chain::Emerald, 42262 => Chain::Emerald,
42261 => Chain::EmeraldTestnet, 42261 => Chain::EmeraldTestnet,
9001 => Chain::Evmos,
9000 => Chain::EvmosTestnet,
_ => return Err(ParseChainError(chain.to_string())), _ => return Err(ParseChainError(chain.to_string())),
}) })
} }