Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/optimism/trie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ workspace = true
[dependencies]
# reth
reth-db = { workspace = true, features = ["mdbx"] }
reth-db-api.workspace = true
reth-evm.workspace = true
reth-execution-errors.workspace = true
reth-node-api.workspace = true
Expand Down Expand Up @@ -52,6 +51,8 @@ tokio = { workspace = true, features = ["test-util", "rt-multi-thread", "macros"
tempfile.workspace = true
test-case.workspace = true
reth-db = { workspace = true, features = ["test-utils"] }
# workaround for failing doc test <https://github.com/op-rs/op-reth/pull/234>
reth-db-api = { workspace = true, features = ["test-utils"] }
reth-trie = { workspace = true, features = ["test-utils"] }

[features]
Expand Down
12 changes: 4 additions & 8 deletions crates/optimism/trie/src/db/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ use crate::{
OpProofsHashedCursor, OpProofsStorageError, OpProofsStorageResult, OpProofsTrieCursor,
};
use alloy_primitives::{B256, U256};
use reth_db::DatabaseEnv;
use reth_db_api::{
use reth_db::{
cursor::{DbCursorRO, DbDupCursorRO},
table::{DupSort, Table},
transaction::DbTx,
Database,
Database, DatabaseEnv,
};
use reth_primitives_traits::Account;
use reth_trie::{BranchNodeCompact, Nibbles, StoredNibbles};
Expand Down Expand Up @@ -296,13 +295,10 @@ mod tests {
use super::*;
use crate::db::models;
use reth_db::{
mdbx::{init_db_for, DatabaseArguments},
DatabaseEnv,
};
use reth_db_api::{
cursor::DbDupCursorRW,
mdbx::{init_db_for, DatabaseArguments},
transaction::{DbTx, DbTxMut},
Database,
Database, DatabaseEnv,
};
use reth_trie::{BranchNodeCompact, Nibbles, StoredNibbles};
use tempfile::TempDir;
Expand Down
2 changes: 1 addition & 1 deletion crates/optimism/trie/src/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use alloy_primitives::{
map::{B256Map, HashMap},
Address, Bytes, B256, U256,
};
use reth_db_api::DatabaseError;
use reth_db::DatabaseError;
use reth_execution_errors::{StateProofError, StateRootError, StorageRootError, TrieWitnessError};
use reth_primitives_traits::Account;
use reth_trie::{
Expand Down
Loading