diff --git a/testing/ef-tests/src/models.rs b/testing/ef-tests/src/models.rs index 6ef42f048a..ec9dbb8ef0 100644 --- a/testing/ef-tests/src/models.rs +++ b/testing/ef-tests/src/models.rs @@ -6,12 +6,8 @@ use alloy_eips::eip4895::Withdrawals; use alloy_genesis::GenesisAccount; use alloy_primitives::{keccak256, Address, Bloom, Bytes, B256, B64, U256}; use reth_chainspec::{ChainSpec, ChainSpecBuilder}; -use reth_db_api::{ - cursor::DbDupCursorRO, - tables, - transaction::{DbTx, DbTxMut}, -}; -use reth_primitives_traits::{Account as RethAccount, Bytecode, SealedHeader, StorageEntry}; +use reth_db_api::{cursor::DbDupCursorRO, tables, transaction::DbTx}; +use reth_primitives_traits::SealedHeader; use serde::Deserialize; use std::{collections::BTreeMap, ops::Deref}; @@ -157,42 +153,6 @@ pub struct TransactionSequence { pub struct State(BTreeMap
); impl State { - /// Write the state to the database. - pub fn write_to_db(&self, tx: &impl DbTxMut) -> Result<(), Error> { - for (&address, account) in &self.0 { - let hashed_address = keccak256(address); - let has_code = !account.code.is_empty(); - let code_hash = has_code.then(|| keccak256(&account.code)); - let reth_account = RethAccount { - balance: account.balance, - nonce: account.nonce.to::