Skip to content

Commit

Permalink
chore(executor): De-duplicate TrieAccount type (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored Jan 29, 2025
1 parent c8b6b95 commit 71a02cc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 86 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ alloy-consensus = { workspace = true, features = ["k256"] }
alloy-primitives = { workspace = true, features = ["rlp"] }
alloy-eips.workspace = true
alloy-rlp.workspace = true
alloy-trie.workspace = true

# Op Alloy
op-alloy-consensus.workspace = true
Expand Down
82 changes: 0 additions & 82 deletions crates/executor/src/db/account.rs

This file was deleted.

4 changes: 1 addition & 3 deletions crates/executor/src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ use alloc::{string::ToString, vec::Vec};
use alloy_consensus::{Header, Sealed, EMPTY_ROOT_HASH};
use alloy_primitives::{keccak256, Address, B256, U256};
use alloy_rlp::{Decodable, Encodable};
use alloy_trie::TrieAccount;
use kona_mpt::{Nibbles, TrieHinter, TrieNode, TrieNodeError};
use revm::{
db::{states::StorageSlot, BundleState},
primitives::{AccountInfo, Bytecode, HashMap, BLOCK_HASH_HISTORY},
Database,
};

mod account;
pub use account::TrieAccount;

mod traits;
pub use traits::{NoopTrieDBProvider, TrieDBProvider};

Expand Down
2 changes: 1 addition & 1 deletion crates/executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub use executor::{
};

mod db;
pub use db::{NoopTrieDBProvider, TrieAccount, TrieDB, TrieDBProvider};
pub use db::{NoopTrieDBProvider, TrieDB, TrieDBProvider};

mod constants;
mod syscalls;
Expand Down

0 comments on commit 71a02cc

Please sign in to comment.