mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: unify noop provider impls (#13345)
This commit is contained in:
@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user