diff --git a/src/serde_helpers.rs b/src/serde_helpers.rs index a6a960f..027e5b0 100644 --- a/src/serde_helpers.rs +++ b/src/serde_helpers.rs @@ -1,10 +1,7 @@ use crate::block_number::BlockNumber; use alloy_primitives::{U256, U64}; use serde::{Deserialize, Deserializer}; -use std::{ - convert::{TryFrom, TryInto}, - str::FromStr, -}; +use std::str::FromStr; /// Helper type to parse numeric strings, `u64` and `U256` #[derive(Deserialize, Debug, Clone)] diff --git a/src/units.rs b/src/units.rs index 98e23df..52cb3fb 100644 --- a/src/units.rs +++ b/src/units.rs @@ -1,5 +1,5 @@ use crate::utils::ConversionError; -use std::{convert::TryFrom, fmt, str::FromStr}; +use std::{fmt, str::FromStr}; /// Common Ethereum unit types. #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] diff --git a/tests/it/account.rs b/tests/it/account.rs index 893e765..a5abd64 100644 --- a/tests/it/account.rs +++ b/tests/it/account.rs @@ -1,5 +1,5 @@ -use crate::*; -use alloy_chains::NamedChain; +use crate::run_with_client; +use alloy_chains::{Chain, NamedChain}; use alloy_primitives::{U256, U64}; use foundry_block_explorers::{ account::{InternalTxQueryOption, TokenQueryOption}, diff --git a/tests/it/blocks.rs b/tests/it/blocks.rs index fb481d6..7f7fc0e 100644 --- a/tests/it/blocks.rs +++ b/tests/it/blocks.rs @@ -1,4 +1,5 @@ -use crate::*; +use crate::run_with_client; +use alloy_chains::Chain; use foundry_block_explorers::block_number::BlockNumber; use serial_test::serial; diff --git a/tests/it/contract.rs b/tests/it/contract.rs index 8ad80ea..5a9b0a0 100644 --- a/tests/it/contract.rs +++ b/tests/it/contract.rs @@ -1,6 +1,6 @@ -use crate::*; -use alloy_chains::Chain; -use foundry_block_explorers::contract::SourceCodeMetadata; +use crate::{init_tracing, run_with_client}; +use alloy_chains::{Chain, NamedChain}; +use foundry_block_explorers::{contract::SourceCodeMetadata, errors::EtherscanError, Client}; use serial_test::serial; /// Abi of [0x00000000219ab540356cBB839Cbe05303d7705Fa](https://api.etherscan.io/api?module=contract&action=getsourcecode&address=0x00000000219ab540356cBB839Cbe05303d7705Fa). diff --git a/tests/it/gas.rs b/tests/it/gas.rs index 9157790..d805e21 100644 --- a/tests/it/gas.rs +++ b/tests/it/gas.rs @@ -1,6 +1,7 @@ -use crate::*; +use crate::run_with_client; use alloy_chains::Chain; use alloy_primitives::U256; +use foundry_block_explorers::errors::EtherscanError; use serial_test::serial; #[tokio::test] diff --git a/tests/it/transaction.rs b/tests/it/transaction.rs index 37513f7..9ee5ca5 100644 --- a/tests/it/transaction.rs +++ b/tests/it/transaction.rs @@ -1,4 +1,6 @@ -use crate::*; +use crate::run_with_client; +use alloy_chains::Chain; +use foundry_block_explorers::errors::EtherscanError; use serial_test::serial; #[tokio::test] diff --git a/tests/it/verify.rs b/tests/it/verify.rs index a034865..67ab5cb 100644 --- a/tests/it/verify.rs +++ b/tests/it/verify.rs @@ -1,4 +1,4 @@ -use crate::*; +use crate::run_with_client; use alloy_chains::Chain; use foundry_block_explorers::verify::VerifyContract; use foundry_compilers::{Project, ProjectPathsConfig}; diff --git a/tests/it/version.rs b/tests/it/version.rs index 2d8d604..fd600ff 100644 --- a/tests/it/version.rs +++ b/tests/it/version.rs @@ -1,5 +1,4 @@ -use crate::*; -use foundry_block_explorers::utils::lookup_compiler_version; +use foundry_block_explorers::{errors::EtherscanError, utils::lookup_compiler_version}; use semver::{BuildMetadata, Prerelease, Version}; #[tokio::test]