Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Nov 12, 2024
1 parent da06971 commit c38de83
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/engine/tree/src/tree/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,20 @@ where
#[cfg(test)]
mod tests {
use super::*;
use reth_provider::{providers::ConsistentDbView, test_utils::MockEthProvider};
use reth_provider::{
providers::ConsistentDbView,
test_utils::{create_test_provider_factory, MockNodeTypesWithDB},
ProviderFactory,
};
use reth_trie::TrieInput;
use revm_primitives::{
Account, AccountInfo, AccountStatus, Address, EvmState, EvmStorage, EvmStorageSlot,
HashMap, B256, U256,
};
use std::sync::Arc;

fn create_mock_config() -> StateRootConfig<MockEthProvider> {
let factory = MockEthProvider::default();
fn create_mock_config() -> StateRootConfig<ProviderFactory<MockNodeTypesWithDB>> {
let factory = create_test_provider_factory();
let view = ConsistentDbView::new(factory, None);
let input = Arc::new(TrieInput::default());
StateRootConfig { consistent_view: view, input }
Expand Down

0 comments on commit c38de83

Please sign in to comment.