Skip to content

Commit d251f21

Browse files
authored
Merge pull request #352 from ytrezq/patch-1
Transfer extractor : fix string compare bug by switching to case insensitive string comparison.
2 parents 59ddb23 + dcdc776 commit d251f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereumetl/service/token_transfer_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def extract_transfer_from_log(self, receipt_log):
4040
# This is normal, topics can be empty for anonymous events
4141
return None
4242

43-
if topics[0] == TRANSFER_EVENT_TOPIC:
43+
if (topics[0]).casefold() == TRANSFER_EVENT_TOPIC:
4444
# Handle unindexed event fields
4545
topics_with_data = topics + split_to_words(receipt_log.data)
4646
# if the number of topics and fields in data part != 4, then it's a weird event

0 commit comments

Comments
 (0)