From a349299c2176381d68b9cae1a41554b0e62db2f6 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 19 Sep 2019 10:51:23 +0300 Subject: [PATCH] fix style issues --- CHANGELOG.md | 2 +- .../templates/tokens/instance/metadata/index.html.eex | 1 - apps/explorer/lib/explorer/chain/token_transfer.ex | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd6d2e21e8..3486f1b2f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Current ### Features +- [#2642](https://github.com/poanetwork/blockscout/pull/2642) - add ERC721 coin instance page - [#2679](https://github.com/poanetwork/blockscout/pull/2679) - added fixed height for card chain blocks and card chain transactions - [#2678](https://github.com/poanetwork/blockscout/pull/2678) - fixed dashboard banner height bug - [#2672](https://github.com/poanetwork/blockscout/pull/2672) - added new theme for xUSDT @@ -8,7 +9,6 @@ - [#2666](https://github.com/poanetwork/blockscout/pull/2666) - fetch token counters in parallel - [#2665](https://github.com/poanetwork/blockscout/pull/2665) - new menu layout for mobile devices - [#2663](https://github.com/poanetwork/blockscout/pull/2663) - Fetch address counters in parallel -- [#2642](https://github.com/poanetwork/blockscout/pull/2642) - add ERC721 coin instance page ### Fixes - [#2707](https://github.com/poanetwork/blockscout/pull/2707) - fix for dashboard banner chart legend items diff --git a/apps/block_scout_web/lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex index ed95835d00..ca5cc7ee20 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex @@ -23,7 +23,6 @@
<%= format_metadata(@token_instance.instance.metadata) %>
             
-
diff --git a/apps/explorer/lib/explorer/chain/token_transfer.ex b/apps/explorer/lib/explorer/chain/token_transfer.ex index 67ed409da6..216a01daf0 100644 --- a/apps/explorer/lib/explorer/chain/token_transfer.ex +++ b/apps/explorer/lib/explorer/chain/token_transfer.ex @@ -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] )