Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: tomg10 <[email protected]>
  • Loading branch information
tomg10 committed Sep 25, 2024
1 parent 95db5a5 commit e1b5f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/node/eth_watch/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ impl EthClient for MockEthClient {
Ok(logs
.into_iter()
.filter(|log| {
log.topics.contains(&topic1)
&& (topic2.is_none() || log.topics.contains(&topic2.unwrap()))
log.topics.get(0) == Some(&topic1)
&& (topic2.is_none() || log.topics.get(1) == topic2.as_ref())
})
.collect())
}
Expand Down

0 comments on commit e1b5f1b

Please sign in to comment.