Skip to content

Commit

Permalink
fix: mid_nonce >= nonce+1 => mid_nonce > nonce
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa committed Jul 5, 2024
1 parent ba7dc65 commit 6f4c94e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/rpc/rpc/src/otterscan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ where

// The `transaction_count` returns the `nonce` after the transaction was
// executed, which is the state of the account after the block, and we need to find
// the transaction whose nonce is the pre-state, so need to compare with `nonce+1`.
Ok(mid_nonce > nonce + 1)
// the transaction whose nonce is the pre-state, so need to compare with `nonce`(no
// equal).
Ok(mid_nonce > nonce)
})
})
.await?;
Expand Down

0 comments on commit 6f4c94e

Please sign in to comment.