Skip to content

Commit cc50b16

Browse files
authored
chore: rm unused account type (#10472)
* chore: rm unused account type * rm unused crate
1 parent 19ecdde commit cc50b16

File tree

4 files changed

+0
-28
lines changed

4 files changed

+0
-28
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/anvil/core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ alloy-rlp.workspace = true
2929
alloy-eips.workspace = true
3030
alloy-consensus = { workspace = true, features = ["k256", "kzg"] }
3131
alloy-dyn-abi = { workspace = true, features = ["std", "eip712"] }
32-
alloy-trie.workspace = true
3332
op-alloy-consensus = { workspace = true, features = ["serde"] }
3433
alloy-network.workspace = true
3534
serde.workspace = true

crates/anvil/core/src/eth/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use foundry_common::serde_helpers::{
1818
};
1919

2020
pub mod block;
21-
pub mod proof;
2221
pub mod subscription;
2322
pub mod transaction;
2423
pub mod wallet;

crates/anvil/core/src/eth/proof.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +0,0 @@
1-
//! Return types for `eth_getProof`
2-
3-
//use crate::eth::trie::KECCAK_NULL_RLP;
4-
use alloy_primitives::{B256, U256};
5-
use alloy_trie::EMPTY_ROOT_HASH;
6-
use revm::primitives::KECCAK_EMPTY;
7-
8-
#[derive(Clone, Debug, PartialEq, Eq, alloy_rlp::RlpEncodable, alloy_rlp::RlpDecodable)]
9-
pub struct BasicAccount {
10-
pub nonce: U256,
11-
pub balance: U256,
12-
pub storage_root: B256,
13-
pub code_hash: B256,
14-
}
15-
16-
impl Default for BasicAccount {
17-
fn default() -> Self {
18-
Self {
19-
balance: U256::ZERO,
20-
nonce: U256::ZERO,
21-
code_hash: KECCAK_EMPTY,
22-
storage_root: EMPTY_ROOT_HASH,
23-
}
24-
}
25-
}

0 commit comments

Comments
 (0)