|
|
|
@ -155,9 +155,9 @@ defmodule Explorer.Chain.TokenTransfer do |
|
|
|
|
query = |
|
|
|
|
from( |
|
|
|
|
tt in TokenTransfer, |
|
|
|
|
where: |
|
|
|
|
tt.token_contract_address_hash == ^token_address_hash and tt.token_id == ^token_id and |
|
|
|
|
not is_nil(tt.block_number), |
|
|
|
|
where: tt.token_contract_address_hash == ^token_address_hash, |
|
|
|
|
where: tt.token_id == ^token_id, |
|
|
|
|
where: not is_nil(tt.block_number), |
|
|
|
|
preload: [{:transaction, :block}, :token, :from_address, :to_address], |
|
|
|
|
order_by: [desc: tt.block_number, desc: tt.log_index] |
|
|
|
|
) |
|
|
|
|