fix remaining tests

pull/2642/head
Ayrat Badykov 5 years ago
parent 1f902e1af3
commit f4b0c21c2e
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/block_scout_web/lib/block_scout_web/controllers/recent_transactions_controller.ex
  2. 4
      apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex

@ -23,7 +23,7 @@ defmodule BlockScoutWeb.RecentTransactionsController do
%{ %{
transaction_hash: Hash.to_string(transaction.hash), transaction_hash: Hash.to_string(transaction.hash),
transaction_html: transaction_html:
View.render_to_string(BlockScoutWeb.TransactionView, "_tile.html", transaction: transaction) View.render_to_string(BlockScoutWeb.TransactionView, "_tile.html", transaction: transaction, conn: conn)
} }
end) end)

@ -193,9 +193,9 @@
<div class="text-right"> <div class="text-right">
<%= for transfer <- aggregate_token_transfers(transaction_with_transfers.token_transfers) do %> <%= for transfer <- aggregate_token_transfers(transaction_with_transfers.token_transfers) do %>
<h3 class="address-balance-text"> <h3 class="address-balance-text">
<%= case token_transfer_amount(@token_transfer) do %> <%= case token_transfer_amount(transfer) do %>
<% {:ok, :erc721_instance} -> %> <% {:ok, :erc721_instance} -> %>
<%= "TokenID ["%><%= link(@token_transfer.token_id, to: token_instance_path(@conn, :show, to_string(@token_transfer.token_id), @token_transfer.token.contract_address_hash)) %><%= "]" %> <%= "TokenID ["%><%= link(transfer.token_id, to: token_instance_path(@conn, :show, to_string(transfer.token_id), transfer.token.contract_address_hash)) %><%= "]" %>
<% {:ok, value} -> %> <% {:ok, value} -> %>
<%= value %> <%= value %>
<% end %> <% end %>

Loading…
Cancel
Save