use conn on the token details partial too

pull/699/head
Gustavo Santos Ferreira 6 years ago
parent 0f235b498b
commit af76d4918a
  1. 2
      apps/block_scout_web/lib/block_scout_web/templates/tokens/overview/_details.html.eex
  2. 4
      apps/block_scout_web/lib/block_scout_web/templates/tokens/read_contract/index.html.eex

@ -28,7 +28,7 @@
<div class="d-flex flex-row justify-content-start text-muted"> <div class="d-flex flex-row justify-content-start text-muted">
<span class="mr-4"> <span class="mr-4">
<%= link to: <%= link to:
address_path(BlockScoutWeb.Endpoint, :show, @token.contract_address_hash), address_path(@conn, :show, @token.contract_address_hash),
"data-test": "token_contract_address" "data-test": "token_contract_address"
do %> do %>
<%= gettext "Contract" %> <%= gettext "Contract" %>

@ -4,7 +4,9 @@
"_details.html", "_details.html",
token: @token, token: @token,
total_token_transfers: @total_token_transfers, 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
) %> ) %>
<section> <section>

Loading…
Cancel
Save