From 4732c011b6b2ba9f4dad0e0fd8237ab152b78f4f Mon Sep 17 00:00:00 2001 From: Qwerty5Uiop <105209995+Qwerty5Uiop@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:55:36 +0400 Subject: [PATCH] chore: Extend missing balanceOf function with :unable_to_decode error (#10713) --- apps/indexer/lib/indexer/fetcher/token_balance.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/indexer/lib/indexer/fetcher/token_balance.ex b/apps/indexer/lib/indexer/fetcher/token_balance.ex index 643ed9fdc0..1f808effc6 100644 --- a/apps/indexer/lib/indexer/fetcher/token_balance.ex +++ b/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)