From 57f7d8355aa622701c635c5c41b9c5ca712c2fe4 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Thu, 6 Aug 2020 13:47:11 +0300 Subject: [PATCH] Fix notifier query for live update of token transfers --- CHANGELOG.md | 1 + apps/block_scout_web/lib/block_scout_web/notifier.ex | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bec02ebbd..29d52cf4ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/apps/block_scout_web/lib/block_scout_web/notifier.ex b/apps/block_scout_web/lib/block_scout_web/notifier.ex index cc390f9cff..6f2fbcd144 100644 --- a/apps/block_scout_web/lib/block_scout_web/notifier.ex +++ b/apps/block_scout_web/lib/block_scout_web/notifier.ex @@ -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])) )