Skip to content

Commit 38c7839

Browse files
committed
minor refactor
1 parent 0029b69 commit 38c7839

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

chain/ethereum/src/data_source.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ use graph::env::ENV_VARS;
1616
use graph::futures03::future::try_join;
1717
use graph::futures03::stream::FuturesOrdered;
1818
use graph::futures03::TryStreamExt;
19-
use graph::prelude::web3::types::Address;
20-
use graph::prelude::web3::types::H160;
2119
use graph::prelude::{Link, SubgraphManifestValidationError};
2220
use graph::slog::{debug, error, o, trace};
2321
use itertools::Itertools;
@@ -34,7 +32,7 @@ use graph::{
3432
blockchain::{self, Blockchain},
3533
prelude::{
3634
async_trait, serde_json, warn,
37-
web3::types::{Log, Transaction, H256},
35+
web3::types::{Address, Log, Transaction, H160, H256},
3836
BlockNumber, CheapClone, EthereumCall, LightEthereumBlock, LightEthereumBlockExt,
3937
LinkResolver, Logger,
4038
},

chain/ethereum/src/trigger.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use graph::data::subgraph::API_VERSION_0_0_6;
66
use graph::data::subgraph::API_VERSION_0_0_7;
77
use graph::data_source::common::DeclaredCall;
88
use graph::prelude::alloy::rpc::types::TransactionReceipt as AlloyTransactionReceipt;
9-
use graph::prelude::alloy_log_to_web3_log;
109
use graph::prelude::web3::types::Address;
1110
use graph::prelude::web3::types::Log;
1211
use graph::prelude::web3::types::Transaction;

tests/src/fixture/ethereum.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ use graph::cheap_clone::CheapClone;
1414
use graph::components::ethereum::BlockWrapper;
1515
use graph::data_source::subgraph;
1616
use graph::prelude::web3::types::H256;
17-
use graph::prelude::web3::types::U64;
1817
use graph::prelude::web3::types::{Address, Log, Transaction, H160};
19-
use graph::prelude::{tiny_keccak, web3, DeploymentHash, Entity, ENV_VARS};
18+
use graph::prelude::{tiny_keccak, DeploymentHash, Entity, ENV_VARS};
2019
use graph::schema::EntityType;
2120
use graph::{abi, alloy_todo};
2221
use graph_chain_ethereum::network::EthereumNetworkAdapters;

0 commit comments

Comments
 (0)