Move formatted_token_amount to currency_helpers and rename it

pull/486/head
Amanda Sposito 6 years ago
parent 95de1ebcb0
commit 1435347ea6
  1. 2
      apps/explorer_web/lib/explorer_web/templates/token/show.html.eex
  2. 5
      apps/explorer_web/test/explorer_web/views/address_transaction_view_test.exs

@ -33,7 +33,7 @@
<span></span>
<div class="text-right">
<h3 class="text-uppercase"><%= "#{@token.total_supply} #{@token.symbol}" %></h3>
<h3 class="text-uppercase"><%= "#{format_integer_to_currency(@token.total_supply)} #{@token.symbol}" %></h3>
<br />
</div>
</div>

@ -0,0 +1,5 @@
defmodule ExplorerWeb.AddresstransactionViewTest do
use ExplorerWeb.ConnCase, async: true
doctest ExplorerWeb.AddressTransactionView
end
Loading…
Cancel
Save