From b80a27ca28153a52320e8081a5de0e96391f77d9 Mon Sep 17 00:00:00 2001 From: Qwerty5Uiop <105209995+Qwerty5Uiop@users.noreply.github.com> Date: Mon, 23 Sep 2024 18:49:55 +0400 Subject: [PATCH] chore: Support non-unique log index for rsk chain type (#10807) --- apps/explorer/lib/explorer/chain/import/runner/blocks.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/explorer/lib/explorer/chain/import/runner/blocks.ex b/apps/explorer/lib/explorer/chain/import/runner/blocks.ex index 3043ce24ec..3b88982e28 100644 --- a/apps/explorer/lib/explorer/chain/import/runner/blocks.ex +++ b/apps/explorer/lib/explorer/chain/import/runner/blocks.ex @@ -738,7 +738,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do end defp refs_to_token_transfers_query(historical_token_transfers_query, filtered_query) do - if Application.get_env(:explorer, :chain_type) == :polygon_zkevm do + if Application.get_env(:explorer, :chain_type) in [:polygon_zkevm, :rsk] do from(historical_tt in subquery(historical_token_transfers_query), inner_join: tt in subquery(filtered_query), on: @@ -779,7 +779,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do end defp derived_token_transfers_query(refs_to_token_transfers, filtered_query) do - if Application.get_env(:explorer, :chain_type) == :polygon_zkevm do + if Application.get_env(:explorer, :chain_type) in [:polygon_zkevm, :rsk] do from(tt in filtered_query, inner_join: tt_1 in subquery(refs_to_token_transfers), on: