Skip to content

Commit

Permalink
#237 Fix ethereum-based chains testnet public keys (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haider-Ali-DS authored Sep 4, 2024
1 parent 80821ac commit f472ac3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion chains/astar/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn config(network: &str) -> Result<BlockchainConfig> {
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",
Expand Down
10 changes: 5 additions & 5 deletions chains/ethereum/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ impl rosetta_core::traits::Block for BlockFull {
pub fn polygon_config(network: &str) -> anyhow::Result<BlockchainConfig> {
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),
};
Expand All @@ -226,7 +226,7 @@ pub fn arbitrum_config(network: &str) -> anyhow::Result<BlockchainConfig> {
// 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),
};
Expand Down Expand Up @@ -256,8 +256,8 @@ pub fn config(network: &str) -> anyhow::Result<BlockchainConfig> {
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"),
Expand Down

0 comments on commit f472ac3

Please sign in to comment.