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">
<span class="mr-4">
<%= 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" %>

@ -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
) %>
<section>

Loading…
Cancel
Save