From f29a2e3a40a950d7948b752ef438fb85e2624a0f Mon Sep 17 00:00:00 2001 From: 2581015450 <2581015450@qq.com> Date: Thu, 26 Oct 2023 01:16:27 +0800 Subject: [PATCH] fix: avalanche testnet error --- anychain-ethereum/Cargo.toml | 2 +- anychain-ethereum/src/network/avalanche_testnet.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/anychain-ethereum/Cargo.toml b/anychain-ethereum/Cargo.toml index 09c0ab7..d4cb2e5 100644 --- a/anychain-ethereum/Cargo.toml +++ b/anychain-ethereum/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anychain-ethereum" description = "A Rust library for Ethereum-focused cryptocurrency wallets, enabling seamless transactions on the Ethereum blockchain" -version = "0.1.5" +version = "0.1.6" keywords = ["blockchain", "crypto", "cryptocurrency", "ethereum", "wallet"] # Workspace inherited keys diff --git a/anychain-ethereum/src/network/avalanche_testnet.rs b/anychain-ethereum/src/network/avalanche_testnet.rs index 2f60338..e066ed2 100644 --- a/anychain-ethereum/src/network/avalanche_testnet.rs +++ b/anychain-ethereum/src/network/avalanche_testnet.rs @@ -9,12 +9,12 @@ use std::{fmt, str::FromStr}; pub struct AvalancheTestnet; impl Network for AvalancheTestnet { - const NAME: &'static str = "ethereum"; + const NAME: &'static str = "avalanche testnet"; } impl EthereumNetwork for AvalancheTestnet { - const CHAIN_ID: u32 = 1; - const NETWORK_ID: u32 = 1; + const CHAIN_ID: u32 = 43113; + const NETWORK_ID: u32 = 43113; } impl FromStr for AvalancheTestnet {