Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction actions fix #6832

Merged
merged 3 commits into from
Feb 7, 2023
Merged

Transaction actions fix #6832

merged 3 commits into from
Feb 7, 2023

Conversation

varasev
Copy link
Contributor

@varasev varasev commented Feb 7, 2023

Motivation

We had the following error when handling nil log.first_topic:

2023-02-07 12:34:31	
{"log":"    Args: []\n","stream":"stdout","time":"2023-02-07T09:34:31.242592344Z"}
2023-02-07 12:34:31	
{"log":"Function: #Function\u003c2.49978846/0 in Indexer.Fetcher.TransactionAction.handle_info/2\u003e\n","stream":"stdout","time":"2023-02-07T09:34:31.242590148Z"}
2023-02-07 12:34:31	
{"log":"    (indexer 5.0.0) lib/indexer/fetcher/transaction_action.ex:115: Indexer.Fetcher.TransactionAction.task/1\n","stream":"stdout","time":"2023-02-07T09:34:31.242587972Z"}
2023-02-07 12:34:31	
{"log":"    (elixir 1.13.1) lib/enum.ex:4136: Enum.reduce_range/5\n","stream":"stdout","time":"2023-02-07T09:34:31.242586044Z"}
2023-02-07 12:34:31	
{"log":"    (indexer 5.0.0) lib/indexer/fetcher/transaction_action.ex:126: anonymous fn/7 in Indexer.Fetcher.TransactionAction.task/1\n","stream":"stdout","time":"2023-02-07T09:34:31.242583758Z"}
2023-02-07 12:34:31	
{"log":"    (indexer 5.0.0) lib/indexer/transform/transaction_actions.ex:127: Indexer.Transform.TransactionActions.parse/2\n","stream":"stdout","time":"2023-02-07T09:34:31.242581543Z"}
2023-02-07 12:34:31	
{"log":"    (elixir 1.13.1) lib/enum.ex:4035: Enum.filter_list/2\n","stream":"stdout","time":"2023-02-07T09:34:31.242578989Z"}
2023-02-07 12:34:31	
{"log":"    (elixir 1.13.1) lib/enum.ex:4034: Enum.filter_list/2\n","stream":"stdout","time":"2023-02-07T09:34:31.242576728Z"}
2023-02-07 12:34:31	
{"log":"    (indexer 5.0.0) lib/indexer/transform/transaction_actions.ex:167: anonymous fn/1 in Indexer.Transform.TransactionActions.uniswap_filter_logs/1\n","stream":"stdout","time":"2023-02-07T09:34:31.242571503Z"}
2023-02-07 12:34:31	
{"log":"    (elixir 1.13.1) lib/string.ex:877: String.downcase(nil, :default)\n","stream":"stdout","time":"2023-02-07T09:34:31.242569161Z"}
2023-02-07 12:34:31	
{"log":"** (FunctionClauseError) no function clause matching in String.downcase/2\n","stream":"stdout","time":"2023-02-07T09:34:31.24256636Z"}

Checklist for your Pull Request (PR)

@varasev varasev requested a review from vbaranov February 7, 2023 11:56
@vbaranov vbaranov merged commit c2497c7 into master Feb 7, 2023
@vbaranov vbaranov deleted the va-tx-actions-fix branch February 7, 2023 12:25
fx0x55 pushed a commit to FunctionX/blockscout that referenced this pull request Feb 14, 2023
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants