Skip to content

Commit

Permalink
Transaction actions fix (blockscout#6832)
Browse files Browse the repository at this point in the history
* Fix tx actions handler

* Small change for mix credo

* Update changelog

---------

Co-authored-by: POA <33550681+poa@users.noreply.github.com>
(cherry picked from commit c2497c7)
  • Loading branch information
varasev authored and fx0x55 committed Feb 14, 2023
1 parent d0499b6 commit 9e5d548
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
### Fixes

- [#6831](https://github.com/blockscout/blockscout/pull/6831) - Copy of [#6028](https://github.com/blockscout/blockscout/pull/6028)
- [#6832](https://github.com/blockscout/blockscout/pull/6832) - Transaction actions fix
- [#6827](https://github.com/blockscout/blockscout/pull/6827) - Fix handling unknown calls from `callTracer`
- [#6793](https://github.com/blockscout/blockscout/pull/6793) - Change sig-provider default image tag to main
- [#6777](https://github.com/blockscout/blockscout/pull/6777) - Fix -1 transaction counter
Expand Down
7 changes: 6 additions & 1 deletion apps/indexer/lib/indexer/transform/transaction_actions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,12 @@ defmodule Indexer.Transform.TransactionActions do
defp uniswap_filter_logs(logs) do
logs
|> Enum.filter(fn log ->
first_topic = String.downcase(log.first_topic)
first_topic =
if is_nil(log.first_topic) do
""
else
String.downcase(log.first_topic)
end

Enum.member?(
[
Expand Down

0 comments on commit 9e5d548

Please sign in to comment.