diff --git a/apps/explorer/lib/explorer/chain.ex b/apps/explorer/lib/explorer/chain.ex index 19d286c61e..7b56fee605 100644 --- a/apps/explorer/lib/explorer/chain.ex +++ b/apps/explorer/lib/explorer/chain.ex @@ -2945,7 +2945,9 @@ defmodule Explorer.Chain do inner_join: token in Token, on: token.contract_address_hash == token_transfer.token_contract_address_hash, left_join: instance in Instance, - on: token_transfer.token_id == instance.token_id and token_transfer.token_contract_address_hash == instance.token_contract_address_hash, + on: + token_transfer.token_id == instance.token_id and + token_transfer.token_contract_address_hash == instance.token_contract_address_hash, where: token.type == ^"ERC-721" and is_nil(instance.token_id) and not is_nil(token_transfer.token_id), distinct: [token_transfer.token_contract_address_hash, token_transfer.token_id], select: %{contract_address_hash: token_transfer.token_contract_address_hash, token_id: token_transfer.token_id}