Fix notifier query for live update of token transfers

pull/3226/head
Victor Baranov 4 years ago
parent 68ea9c1ea1
commit 57f7d8355a
  1. 1
      CHANGELOG.md
  2. 3
      apps/block_scout_web/lib/block_scout_web/notifier.ex

@ -4,6 +4,7 @@
- [#3224](https://github.com/poanetwork/blockscout/pull/3224) - Top tokens page
### Fixes
- [#3226](https://github.com/poanetwork/blockscout/pull/3226) - Fix notifier query for live update of token transfers
- [#3220](https://github.com/poanetwork/blockscout/pull/3220) - Allow interaction with navbar menu at block-not-found page
### Chore

@ -119,7 +119,8 @@ defmodule BlockScoutWeb.Notifier do
&(TokenTransfer
|> Repo.get_by(
transaction_hash: &1.transaction_hash,
token_contract_address_hash: &1.token_contract_address_hash
token_contract_address_hash: &1.token_contract_address_hash,
log_index: &1.log_index
)
|> Repo.preload([:from_address, :to_address, :token, transaction: :block]))
)

Loading…
Cancel
Save