chore: simplify revm imports (#15090)

This commit is contained in:
rakita
2025-03-19 14:05:09 +01:00
committed by GitHub
parent 9cb7177dfc
commit 01e5492134
24 changed files with 56 additions and 101 deletions

View File

@@ -21,8 +21,7 @@ pub mod cancelled;
/// Contains glue code for integrating reth database into revm's [Database].
pub mod database;
pub use revm_database as db;
pub use revm_inspector as inspector;
pub use revm::{database as db, inspector};
/// Common test helpers
#[cfg(any(test, feature = "test-utils"))]

View File

@@ -145,7 +145,7 @@ impl StateProofProvider for StateProviderTest {
}
impl HashedPostStateProvider for StateProviderTest {
fn hashed_post_state(&self, bundle_state: &revm_database::BundleState) -> HashedPostState {
fn hashed_post_state(&self, bundle_state: &revm::database::BundleState) -> HashedPostState {
HashedPostState::from_bundle_state::<KeccakKeyHasher>(bundle_state.state())
}
}

View File

@@ -1,7 +1,7 @@
use alloc::vec::Vec;
use alloy_primitives::{keccak256, Bytes, B256};
use reth_trie::{HashedPostState, HashedStorage};
use revm_database::State;
use revm::database::State;
/// Tracks state changes during execution.
#[derive(Debug, Clone, Default)]