From f47055f44f4c0157812e710e4b5996d598326f20 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 9 Jul 2024 18:00:16 +0200 Subject: [PATCH] test: make test compile in reth-rpc --- crates/rpc/rpc/Cargo.toml | 4 +++- crates/rpc/rpc/src/eth/helpers/state.rs | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/rpc/rpc/Cargo.toml b/crates/rpc/rpc/Cargo.toml index 256fc156bad4..8542921c4c24 100644 --- a/crates/rpc/rpc/Cargo.toml +++ b/crates/rpc/rpc/Cargo.toml @@ -76,8 +76,10 @@ derive_more.workspace = true [dev-dependencies] reth-evm-ethereum.workspace = true reth-testing-utils.workspace = true -jsonrpsee-types.workspace = true +reth-transaction-pool = { workspace = true, features = ["test-utils"] } +reth-provider = { workspace = true, features = ["test-utils"] } +jsonrpsee-types.workspace = true jsonrpsee = { workspace = true, features = ["client"] } assert_matches.workspace = true tempfile.workspace = true diff --git a/crates/rpc/rpc/src/eth/helpers/state.rs b/crates/rpc/rpc/src/eth/helpers/state.rs index d3a99d2f83ab..0eff4245e283 100644 --- a/crates/rpc/rpc/src/eth/helpers/state.rs +++ b/crates/rpc/rpc/src/eth/helpers/state.rs @@ -40,8 +40,7 @@ where #[cfg(test)] mod tests { - use std::collections::HashMap; - + use super::*; use reth_evm_ethereum::EthEvmConfig; use reth_primitives::{ constants::ETHEREUM_BLOCK_GAS_LIMIT, Address, StorageKey, StorageValue, U256, @@ -54,8 +53,7 @@ mod tests { use reth_rpc_server_types::constants::{DEFAULT_ETH_PROOF_WINDOW, DEFAULT_PROOF_PERMITS}; use reth_tasks::pool::BlockingTaskPool; use reth_transaction_pool::test_utils::testing_pool; - - use super::*; + use std::collections::HashMap; #[tokio::test] async fn test_storage() {