Skip to content

Commit

Permalink
bug fix: select event logs ignore case when process erc20 transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Sep 21, 2018
1 parent dcf1067 commit ce36476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/erc20_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def save_from_event_log(event_log)
# @param address [String]
# @return [void]
def init_address(address)
event_logs = EventLog.where(address: address.downcase)
event_logs = EventLog.where("address ILIKE ?", address)
ApplicationRecord.transaction do
event_logs.find_each do |el|
save_from_event_log(el)
Expand Down

0 comments on commit ce36476

Please sign in to comment.