Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit 5bc93e7

Browse files
authored
chore: remove unused imports (#33)
1 parent aae3b16 commit 5bc93e7

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/serde_helpers.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
use crate::block_number::BlockNumber;
22
use alloy_primitives::{U256, U64};
33
use serde::{Deserialize, Deserializer};
4-
use std::{
5-
convert::{TryFrom, TryInto},
6-
str::FromStr,
7-
};
4+
use std::str::FromStr;
85

96
/// Helper type to parse numeric strings, `u64` and `U256`
107
#[derive(Deserialize, Debug, Clone)]

src/units.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::utils::ConversionError;
2-
use std::{convert::TryFrom, fmt, str::FromStr};
2+
use std::{fmt, str::FromStr};
33

44
/// Common Ethereum unit types.
55
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)]

tests/it/account.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::*;
2-
use alloy_chains::NamedChain;
1+
use crate::run_with_client;
2+
use alloy_chains::{Chain, NamedChain};
33
use alloy_primitives::{U256, U64};
44
use foundry_block_explorers::{
55
account::{InternalTxQueryOption, TokenQueryOption},

tests/it/blocks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use crate::*;
1+
use crate::run_with_client;
2+
use alloy_chains::Chain;
23
use foundry_block_explorers::block_number::BlockNumber;
34
use serial_test::serial;
45

tests/it/contract.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use crate::*;
2-
use alloy_chains::Chain;
3-
use foundry_block_explorers::contract::SourceCodeMetadata;
1+
use crate::{init_tracing, run_with_client};
2+
use alloy_chains::{Chain, NamedChain};
3+
use foundry_block_explorers::{contract::SourceCodeMetadata, errors::EtherscanError, Client};
44
use serial_test::serial;
55

66
/// Abi of [0x00000000219ab540356cBB839Cbe05303d7705Fa](https://api.etherscan.io/api?module=contract&action=getsourcecode&address=0x00000000219ab540356cBB839Cbe05303d7705Fa).

tests/it/gas.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use crate::*;
1+
use crate::run_with_client;
22
use alloy_chains::Chain;
33
use alloy_primitives::U256;
4+
use foundry_block_explorers::errors::EtherscanError;
45
use serial_test::serial;
56

67
#[tokio::test]

tests/it/transaction.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use crate::*;
1+
use crate::run_with_client;
2+
use alloy_chains::Chain;
3+
use foundry_block_explorers::errors::EtherscanError;
24
use serial_test::serial;
35

46
#[tokio::test]

tests/it/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::*;
1+
use crate::run_with_client;
22
use alloy_chains::Chain;
33
use foundry_block_explorers::verify::VerifyContract;
44
use foundry_compilers::{Project, ProjectPathsConfig};

tests/it/version.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use crate::*;
2-
use foundry_block_explorers::utils::lookup_compiler_version;
1+
use foundry_block_explorers::{errors::EtherscanError, utils::lookup_compiler_version};
32
use semver::{BuildMetadata, Prerelease, Version};
43

54
#[tokio::test]

0 commit comments

Comments
 (0)