From c7e1237a6bc0aba3a771c24c2c1754ad1e1faab4 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 23 Jun 2022 17:02:52 +0200 Subject: [PATCH] fix: add missing chain id match arms (#1411) --- ethers-core/src/types/chain.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ethers-core/src/types/chain.rs b/ethers-core/src/types/chain.rs index b80bb502..3a14caff 100644 --- a/ethers-core/src/types/chain.rs +++ b/ethers-core/src/types/chain.rs @@ -139,8 +139,9 @@ impl TryFrom for Chain { 43114 => Chain::Avalanche, 43113 => Chain::AvalancheFuji, 11155111 => Chain::Sepolia, - 1287 => Chain::Moonbeam, - 1281 => Chain::MoonbeamDev, + 1284 => Chain::Moonbeam, + 1281 => Chain::Moonbase, + 1287 => Chain::MoonbeamDev, 1285 => Chain::Moonriver, 10 => Chain::Optimism, 69 => Chain::OptimismKovan, @@ -156,6 +157,8 @@ impl TryFrom for Chain { 26863 => Chain::Oasis, 42262 => Chain::Emerald, 42261 => Chain::EmeraldTestnet, + 9001 => Chain::Evmos, + 9000 => Chain::EvmosTestnet, _ => return Err(ParseChainError(chain.to_string())), }) }