Skip to content

Commit

Permalink
added amoy and updated chain_id (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojJiSharma authored Jun 17, 2024
1 parent a0e55f5 commit bca13f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chains/ethereum/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +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", 1, true),
"mumbai" => ("mumbai", 80001, true),
"amoy" => ("amoy", 80002, true),
"mainnet" => ("mainnet", 966, false),
_ => anyhow::bail!("unsupported network: {}", network),
};
Expand Down Expand Up @@ -247,6 +248,7 @@ pub fn config(network: &str) -> anyhow::Result<BlockchainConfig> {
"polygon-local" => return polygon_config("dev"),
"polygon" => return polygon_config("mainnet"),
"mumbai" => return polygon_config("mumbai"),
"amoy" => return polygon_config("amoy"),

// Astar
"astar-local" => return astar_config("dev"),
Expand Down

0 comments on commit bca13f7

Please sign in to comment.