Skip to content

Commit

Permalink
Merge pull request #55 from ScovottoDavide/main
Browse files Browse the repository at this point in the history
feat: allow non-checksum formatted values in the WHERE clause for logs
  • Loading branch information
iankressin authored Nov 14, 2024
2 parents 96a8f31 + 7e7a071 commit 1579a39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/core/src/common/logs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::str::FromStr;

use super::{
block::BlockRange,
entity_id::{parse_block_number_or_tag, EntityIdError},
Expand Down Expand Up @@ -140,7 +142,7 @@ impl TryFrom<Pair<'_, Rule>> for LogFilter {
match pair.as_rule() {
Rule::address_filter_type => extract_value(pair, |s| {
Ok(LogFilter::EmitterAddress(Address::parse_checksummed(
s, None,
Address::to_checksum(&Address::from_str(s)?, None), None,
)?))
}),
Rule::blockrange_filter => parse_block_range(pair),
Expand Down

0 comments on commit 1579a39

Please sign in to comment.