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 %>