From 0f235b498b68c2d1abfdb167c440b0b209b35328 Mon Sep 17 00:00:00 2001 From: Gustavo Santos Ferreira Date: Tue, 11 Sep 2018 10:42:15 -0300 Subject: [PATCH] use @ conn instead of BlockScoutWeb.Endpoint --- .../templates/address/overview.html.eex | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex index 04a00fa068..63921dceb3 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address/overview.html.eex @@ -22,30 +22,22 @@ <%= if contract?(@address) do %> - <%= link(gettext("Token"), to: token_path(BlockScoutWeb.Endpoint, :show, @address.hash), "data-test": "token_hash_link" ) %> + <%= link(gettext("Token"), to: token_path(@conn, :show, @address.hash), "data-test": "token_hash_link" ) %> <%= gettext "Contract created by" %> <%= link( - trimmed_hash(@address.contracts_creation_internal_transaction.from_address_hash), - to: address_path( - BlockScoutWeb.Endpoint, - :show, - @address.contracts_creation_internal_transaction.from_address_hash - ) - ) %> + trimmed_hash(@address.contracts_creation_internal_transaction.from_address_hash), + to: address_path(@conn, :show, @address.contracts_creation_internal_transaction.from_address_hash) + ) %> <%= gettext "at" %> <%= link( - trimmed_hash(@address.contracts_creation_internal_transaction.transaction_hash), - to: transaction_path( - BlockScoutWeb.Endpoint, - :show, - @address.contracts_creation_internal_transaction.transaction_hash - ), - "data-test": "transaction_hash_link" - ) %> + trimmed_hash(@address.contracts_creation_internal_transaction.transaction_hash), + to: transaction_path(@conn, :show, @address.contracts_creation_internal_transaction.transaction_hash), + "data-test": "transaction_hash_link" + ) %> <% end %>