Skip to content

Commit

Permalink
chore: remove unused imports (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Feb 20, 2024
1 parent aae3b16 commit 5bc93e7
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
5 changes: 1 addition & 4 deletions src/serde_helpers.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/units.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions tests/it/account.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down
3 changes: 2 additions & 1 deletion tests/it/blocks.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
6 changes: 3 additions & 3 deletions tests/it/contract.rs
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
3 changes: 2 additions & 1 deletion tests/it/gas.rs
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 3 additions & 1 deletion tests/it/transaction.rs
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/it/verify.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
3 changes: 1 addition & 2 deletions tests/it/version.rs
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit 5bc93e7

Please sign in to comment.