Small refactoring

This commit is contained in:
activecoder10
2025-07-07 12:28:05 +03:00
parent c5ab27ed82
commit 9d2084834c
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
//! The go-ethereum node implementation.
use std::{
collections::HashMap as StdHashMap,
collections::HashMap,
fs::{File, create_dir_all, remove_dir_all},
io::{BufRead, BufReader, Read, Write},
path::PathBuf,
@@ -16,7 +16,7 @@ use std::{
use alloy::{
network::EthereumWallet,
primitives::{Address},
primitives::Address,
providers::{Provider, ProviderBuilder, ext::DebugApi},
rpc::types::{
TransactionReceipt, TransactionRequest,
@@ -51,7 +51,7 @@ pub struct Instance {
network_id: u64,
start_timeout: u64,
wallet: EthereumWallet,
nonces: Mutex<StdHashMap<Address, u64>>,
nonces: Mutex<HashMap<Address, u64>>,
}
impl Instance {
@@ -238,7 +238,7 @@ impl Node for Instance {
network_id: config.network_id,
start_timeout: config.geth_start_timeout,
wallet: config.wallet(),
nonces: Mutex::new(StdHashMap::new()),
nonces: Mutex::new(HashMap::new()),
}
}
+4 -4
View File
@@ -1,5 +1,5 @@
use std::{
collections::HashMap as StdHashMap,
collections::HashMap,
fs::create_dir_all,
io::BufRead,
path::PathBuf,
@@ -14,7 +14,7 @@ use std::{
use alloy::{
hex,
network::EthereumWallet,
primitives::{Address},
primitives::Address,
providers::{Provider, ProviderBuilder, ext::DebugApi},
rpc::types::{
TransactionReceipt,
@@ -45,7 +45,7 @@ pub struct KitchensinkNode {
base_directory: PathBuf,
process_substrate: Option<Child>,
process_proxy: Option<Child>,
nonces: Mutex<StdHashMap<Address, u64>>,
nonces: Mutex<HashMap<Address, u64>>,
}
impl KitchensinkNode {
@@ -328,7 +328,7 @@ impl Node for KitchensinkNode {
base_directory,
process_substrate: None,
process_proxy: None,
nonces: Mutex::new(StdHashMap::new()),
nonces: Mutex::new(HashMap::new()),
}
}