diff --git a/crates/node/src/geth.rs b/crates/node/src/geth.rs index 673021e..bf45c37 100644 --- a/crates/node/src/geth.rs +++ b/crates/node/src/geth.rs @@ -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>, + nonces: Mutex>, } 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()), } } diff --git a/crates/node/src/kitchensink.rs b/crates/node/src/kitchensink.rs index 3bb3ad1..321637b 100644 --- a/crates/node/src/kitchensink.rs +++ b/crates/node/src/kitchensink.rs @@ -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, process_proxy: Option, - nonces: Mutex>, + nonces: Mutex>, } 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()), } }