From f472ac3a546047390a913515315c973b39302ae7 Mon Sep 17 00:00:00 2001 From: Haider Ali <70846121+Haider-Ali-DS@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:17:17 +0500 Subject: [PATCH] #237 Fix ethereum-based chains testnet public keys (#246) --- chains/astar/config/src/lib.rs | 2 +- chains/ethereum/config/src/lib.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chains/astar/config/src/lib.rs b/chains/astar/config/src/lib.rs index 2294efc8..2257c0a6 100644 --- a/chains/astar/config/src/lib.rs +++ b/chains/astar/config/src/lib.rs @@ -44,7 +44,7 @@ pub fn config(network: &str) -> Result { network, algorithm: Algorithm::EcdsaRecoverableSecp256k1, address_format: AddressFormat::Eip55, - coin: if network == "astar" { 810 } else { 1 }, + coin: if network == "astar" { 810 } else { 60 }, bip44: true, utxo: false, currency_unit: "planck", diff --git a/chains/ethereum/config/src/lib.rs b/chains/ethereum/config/src/lib.rs index c908400a..44dc19d1 100644 --- a/chains/ethereum/config/src/lib.rs +++ b/chains/ethereum/config/src/lib.rs @@ -210,8 +210,8 @@ impl rosetta_core::traits::Block for BlockFull { pub fn polygon_config(network: &str) -> anyhow::Result { let (network, bip44_id, is_dev) = match network { "dev" => ("dev", 1, true), - "mumbai" => ("mumbai", 80001, true), - "amoy" => ("amoy", 80002, true), + "mumbai" => ("mumbai", 60, true), + "amoy" => ("amoy", 60, true), "mainnet" => ("mainnet", 966, false), _ => anyhow::bail!("unsupported network: {}", network), }; @@ -226,7 +226,7 @@ pub fn arbitrum_config(network: &str) -> anyhow::Result { // All available networks in arbitrum are listed here: let (network, bip44_id, is_dev) = match network { "dev" => ("dev", 1, true), - "goerli" => ("goerli", 1, true), + "goerli" => ("goerli", 60, true), "mainnet" => ("mainnet", 42161, false), _ => anyhow::bail!("unsupported network: {}", network), }; @@ -256,8 +256,8 @@ pub fn config(network: &str) -> anyhow::Result { let (network, symbol, bip44_id, is_dev) = match network { "dev" => ("dev", "ETH", 1, true), "mainnet" => ("mainnet", "ETH", 60, false), - "goerli" => ("goerli", "TST", 1, true), - "sepolia" => ("sepolia", "SepoliaETH", 1, true), + "goerli" => ("goerli", "TST", 60, true), + "sepolia" => ("sepolia", "SepoliaETH", 60, true), // Polygon "polygon-local" => return polygon_config("dev"),