Skip to content

Commit 427cdee

Browse files
committed
fix: don't disregard address bloom
1 parent 3324e1b commit 427cdee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rpc-types-eth/src/filter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ impl Filter {
652652
/// Check whether the provided bloom contains all topics and the address we
653653
/// wish to filter on.
654654
pub fn matches_bloom(&self, bloom: Bloom) -> bool {
655-
bloom.contains(&self.address_bloom());
656-
self.topics_bloom().iter().all(|topic_bloom| bloom.contains(topic_bloom))
655+
bloom.contains(&self.address_bloom())
656+
&& self.topics_bloom().iter().all(|topic_bloom| bloom.contains(topic_bloom))
657657
}
658658

659659
/// Returns `true` if the filter matches the given topics.

0 commit comments

Comments
 (0)