Skip to content

Commit

Permalink
chore: add back legacy rich wallets (#439)
Browse files Browse the repository at this point in the history
* chore: add back legacy rich wallets

* chore: bump for release
  • Loading branch information
dutterbutter authored Nov 26, 2024
1 parent 4a99b85 commit 16c4d6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
homepage = "https://zksync.io/"
Expand Down
9 changes: 8 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 16c4d6d

Please sign in to comment.