Skip to content

Commit 2ac79f9

Browse files
chore(deps): Rm redundant dep (#260)
Ref #205 Removes redundant dep `reth-db-api` from `reth-optimism-trie`, since used types are re-exported via `reth-db` --------- Co-authored-by: Arun Dhyani <[email protected]>
1 parent 137a20c commit 2ac79f9

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

crates/optimism/trie/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ workspace = true
1414
[dependencies]
1515
# reth
1616
reth-db = { workspace = true, features = ["mdbx"] }
17-
reth-db-api.workspace = true
1817
reth-evm.workspace = true
1918
reth-execution-errors.workspace = true
2019
reth-node-api.workspace = true
@@ -52,6 +51,8 @@ tokio = { workspace = true, features = ["test-util", "rt-multi-thread", "macros"
5251
tempfile.workspace = true
5352
test-case.workspace = true
5453
reth-db = { workspace = true, features = ["test-utils"] }
54+
# workaround for failing doc test <https://github.com/op-rs/op-reth/pull/234>
55+
reth-db-api = { workspace = true, features = ["test-utils"] }
5556
reth-trie = { workspace = true, features = ["test-utils"] }
5657

5758
[features]

crates/optimism/trie/src/db/cursor.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ use crate::{
55
OpProofsHashedCursor, OpProofsStorageError, OpProofsStorageResult, OpProofsTrieCursor,
66
};
77
use alloy_primitives::{B256, U256};
8-
use reth_db::DatabaseEnv;
9-
use reth_db_api::{
8+
use reth_db::{
109
cursor::{DbCursorRO, DbDupCursorRO},
1110
table::{DupSort, Table},
1211
transaction::DbTx,
13-
Database,
12+
Database, DatabaseEnv,
1413
};
1514
use reth_primitives_traits::Account;
1615
use reth_trie::{BranchNodeCompact, Nibbles, StoredNibbles};
@@ -296,13 +295,10 @@ mod tests {
296295
use super::*;
297296
use crate::db::models;
298297
use reth_db::{
299-
mdbx::{init_db_for, DatabaseArguments},
300-
DatabaseEnv,
301-
};
302-
use reth_db_api::{
303298
cursor::DbDupCursorRW,
299+
mdbx::{init_db_for, DatabaseArguments},
304300
transaction::{DbTx, DbTxMut},
305-
Database,
301+
Database, DatabaseEnv,
306302
};
307303
use reth_trie::{BranchNodeCompact, Nibbles, StoredNibbles};
308304
use tempfile::TempDir;

crates/optimism/trie/src/proof.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use alloy_primitives::{
99
map::{B256Map, HashMap},
1010
Address, Bytes, B256, U256,
1111
};
12-
use reth_db_api::DatabaseError;
12+
use reth_db::DatabaseError;
1313
use reth_execution_errors::{StateProofError, StateRootError, StorageRootError, TrieWitnessError};
1414
use reth_primitives_traits::Account;
1515
use reth_trie::{

0 commit comments

Comments
 (0)