From 1435347ea6d96e4cb946de5b79c7a56cdc56bb2c Mon Sep 17 00:00:00 2001 From: Amanda Sposito Date: Mon, 30 Jul 2018 17:54:58 -0300 Subject: [PATCH] Move formatted_token_amount to currency_helpers and rename it --- .../lib/explorer_web/templates/token/show.html.eex | 2 +- .../explorer_web/views/address_transaction_view_test.exs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 apps/explorer_web/test/explorer_web/views/address_transaction_view_test.exs diff --git a/apps/explorer_web/lib/explorer_web/templates/token/show.html.eex b/apps/explorer_web/lib/explorer_web/templates/token/show.html.eex index 09e4172beb..1861478b74 100644 --- a/apps/explorer_web/lib/explorer_web/templates/token/show.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/token/show.html.eex @@ -33,7 +33,7 @@
-

<%= "#{@token.total_supply} #{@token.symbol}" %>

+

<%= "#{format_integer_to_currency(@token.total_supply)} #{@token.symbol}" %>


diff --git a/apps/explorer_web/test/explorer_web/views/address_transaction_view_test.exs b/apps/explorer_web/test/explorer_web/views/address_transaction_view_test.exs new file mode 100644 index 0000000000..21cbcb7aeb --- /dev/null +++ b/apps/explorer_web/test/explorer_web/views/address_transaction_view_test.exs @@ -0,0 +1,5 @@ +defmodule ExplorerWeb.AddresstransactionViewTest do + use ExplorerWeb.ConnCase, async: true + + doctest ExplorerWeb.AddressTransactionView +end