From af76d4918ab7922ccd8c7dadf4be65957ccc8402 Mon Sep 17 00:00:00 2001 From: Gustavo Santos Ferreira Date: Tue, 11 Sep 2018 10:49:03 -0300 Subject: [PATCH] use conn on the token details partial too --- .../templates/tokens/overview/_details.html.eex | 2 +- .../templates/tokens/read_contract/index.html.eex | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/tokens/overview/_details.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/tokens/overview/_details.html.eex index df21cbe757..8a7e888241 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/tokens/overview/_details.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/tokens/overview/_details.html.eex @@ -28,7 +28,7 @@
<%= link to: - address_path(BlockScoutWeb.Endpoint, :show, @token.contract_address_hash), + address_path(@conn, :show, @token.contract_address_hash), "data-test": "token_contract_address" do %> <%= gettext "Contract" %> diff --git a/apps/block_scout_web/lib/block_scout_web/templates/tokens/read_contract/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/tokens/read_contract/index.html.eex index bc34b96501..1903d8aac4 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/tokens/read_contract/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/tokens/read_contract/index.html.eex @@ -4,7 +4,9 @@ "_details.html", token: @token, total_token_transfers: @total_token_transfers, - total_token_holders: @total_token_holders + total_token_holders: @total_token_holders, + total_address_in_token_transfers: @total_address_in_token_transfers, + conn: @conn ) %>