Skip to content

Commit

Permalink
fix: transaction_by_hash_with_meta implementation of `CanonicalInMe…
Browse files Browse the repository at this point in the history
…moryState` (paradigmxyz#10501)
  • Loading branch information
greged93 authored Aug 24, 2024
1 parent e834f7c commit c788b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/chain-state/src/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ impl CanonicalInMemoryState {
&self,
tx_hash: TxHash,
) -> Option<(TransactionSigned, TransactionMeta)> {
for (block_number, block_state) in self.canonical_chain().enumerate() {
for block_state in self.canonical_chain() {
if let Some((index, tx)) = block_state
.block()
.block()
Expand All @@ -543,7 +543,7 @@ impl CanonicalInMemoryState {
tx_hash,
index: index as u64,
block_hash: block_state.hash(),
block_number: block_number as u64,
block_number: block_state.block().block.number,
base_fee: block_state.block().block().header.base_fee_per_gas,
timestamp: block_state.block().block.timestamp,
excess_blob_gas: block_state.block().block.excess_blob_gas,
Expand Down

0 comments on commit c788b6a

Please sign in to comment.