Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
chore: use deref directly (#12256)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 1, 2024
1 parent d810001 commit 41c4bab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions crates/rpc/rpc-eth-api/src/helpers/pending_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/rpc-eth-types/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 41c4bab

Please sign in to comment.