|
|
|
@ -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} |
|
|
|
|