diff --git a/Cargo.lock b/Cargo.lock index ca6e8c1d..6fab8207 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2465,7 +2465,7 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "era_test_node" -version = "0.1.0-alpha.33" +version = "0.1.0-alpha.34" dependencies = [ "alloy", "alloy-signer", diff --git a/Cargo.toml b/Cargo.toml index 473acfdb..dbf753b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "era_test_node" -version = "0.1.0-alpha.33" +version = "0.1.0-alpha.34" edition = "2018" authors = ["The Matter Labs Team "] homepage = "https://zksync.io/" diff --git a/src/main.rs b/src/main.rs index dfb7fa97..cc2b9663 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,8 @@ use bytecode_override::override_bytecodes; use clap::Parser; use config::cli::{Cli, Command}; use config::constants::{ - DEFAULT_ESTIMATE_GAS_PRICE_SCALE_FACTOR, DEFAULT_ESTIMATE_GAS_SCALE_FACTOR, LEGACY_RICH_WALLETS, + DEFAULT_ESTIMATE_GAS_PRICE_SCALE_FACTOR, DEFAULT_ESTIMATE_GAS_SCALE_FACTOR, + LEGACY_RICH_WALLETS, RICH_WALLETS, }; use config::ForkPrintInfo; use fork::{ForkDetails, ForkSource}; @@ -258,10 +259,16 @@ async fn main() -> anyhow::Result<()> { let address = H160::from_slice(signer.address().as_ref()); node.set_rich_account(address, config.genesis_balance); } + // sets legacy rich wallets for wallet in LEGACY_RICH_WALLETS.iter() { let address = wallet.0; node.set_rich_account(H160::from_str(address).unwrap(), config.genesis_balance); } + // sets additional legacy rich wallets + for wallet in RICH_WALLETS.iter() { + let address = wallet.0; + node.set_rich_account(H160::from_str(address).unwrap(), config.genesis_balance); + } let threads = future::join_all(config.host.iter().map(|host| { let addr = SocketAddr::new(*host, config.port);