chore: unify noop provider impls (#13345)

This commit is contained in:
Matthias Seitz
2024-12-12 14:13:39 +01:00
committed by GitHub
parent aca4a2db39
commit 90fcfb90e7
4 changed files with 41 additions and 572 deletions

View File

@ -55,6 +55,7 @@ where
#[cfg(test)]
mod tests {
use super::*;
use alloy_eips::eip1559::ETHEREUM_BLOCK_GAS_LIMIT;
use alloy_primitives::{hex_literal::hex, Bytes};
use reth_chainspec::ChainSpecProvider;
@ -71,8 +72,6 @@ mod tests {
use reth_tasks::pool::BlockingTaskPool;
use reth_transaction_pool::{test_utils::testing_pool, TransactionPool};
use super::*;
#[tokio::test]
async fn send_raw_transaction() {
let noop_provider = NoopProvider::default();
@ -81,10 +80,10 @@ mod tests {
let pool = testing_pool();
let evm_config = EthEvmConfig::new(noop_provider.chain_spec());
let cache = EthStateCache::spawn(noop_provider, Default::default());
let cache = EthStateCache::spawn(noop_provider.clone(), Default::default());
let fee_history_cache = FeeHistoryCache::new(FeeHistoryCacheConfig::default());
let eth_api = EthApi::new(
noop_provider,
noop_provider.clone(),
pool.clone(),
noop_network_provider,
cache.clone(),