Skip to content

Commit 600ee1e

Browse files
committed
feat: allow non-checksum formatted values in the WHERE clause for logs
1 parent 47c8457 commit 600ee1e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/core/src/common/logs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use std::str::FromStr;
2+
13
use super::{
24
block::BlockRange,
35
entity_id::{parse_block_number_or_tag, EntityIdError},
@@ -140,7 +142,7 @@ impl TryFrom<Pair<'_, Rule>> for LogFilter {
140142
match pair.as_rule() {
141143
Rule::address_filter_type => extract_value(pair, |s| {
142144
Ok(LogFilter::EmitterAddress(Address::parse_checksummed(
143-
s, None,
145+
Address::to_checksum(&Address::from_str(s)?, None), None,
144146
)?))
145147
}),
146148
Rule::blockrange_filter => parse_block_range(pair),

0 commit comments

Comments
 (0)