fix not found token instance

pull/2770/head
Ayrat Badykov 5 years ago
parent a274257c2e
commit 47a44a50a9
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 4
      apps/explorer/lib/explorer/chain.ex

@ -3208,9 +3208,7 @@ defmodule Explorer.Chain do
from(tt in TokenTransfer,
left_join: instance in Instance,
on: tt.token_contract_address_hash == instance.token_contract_address_hash and tt.token_id == instance.token_id,
where:
tt.token_contract_address_hash == ^token_contract_address and tt.token_id == ^token_id and
is_nil(instance.error),
where: tt.token_contract_address_hash == ^token_contract_address and tt.token_id == ^token_id,
limit: 1,
select: %{tt | instance: instance}
)

Loading…
Cancel
Save