chore: use deref directly (#12256)

This commit is contained in:
Matthias Seitz
2024-11-01 17:02:49 +01:00
committed by GitHub
parent d810001279
commit 41c4bab0f7
2 changed files with 2 additions and 4 deletions

View File

@ -399,9 +399,7 @@ pub trait LoadPendingBlock:
execution_outcome.block_logs_bloom(block_number).expect("Block is present");
// calculate the state root
let state_provider = &db.database;
let state_root =
state_provider.state_root(hashed_state).map_err(Self::Error::from_eth_err)?;
let state_root = db.database.state_root(hashed_state).map_err(Self::Error::from_eth_err)?;
// create the block header
let transactions_root = calculate_transaction_root(&executed_txs);

View File

@ -274,7 +274,7 @@ pub fn build_block<T: TransactionCompat>(
}
}
let state_root = db.db.0.state_root(hashed_state)?;
let state_root = db.db.state_root(hashed_state)?;
let header = reth_primitives::Header {
beneficiary: block_env.coinbase,