chore: Extend missing balanceOf function with :unable_to_decode error (#10713)

pull/10714/head
Qwerty5Uiop 3 months ago committed by GitHub
parent acd60fb4bf
commit 4732c011b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      apps/indexer/lib/indexer/fetcher/token_balance.ex

@ -181,6 +181,7 @@ defmodule Indexer.Fetcher.TokenBalance do
defp handle_failed_balances(failed_token_balances) do
{missing_balance_of_balances, other_failed_balances} =
Enum.split_with(failed_token_balances, fn
%{error: :unable_to_decode} -> true
%{error: error} when is_binary(error) -> error =~ "execution reverted"
_ -> false
end)

Loading…
Cancel
Save