From a3d6ad070202f4667304b4c9e9d6fe5e9ebef230 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna B Date: Thu, 15 Jun 2023 20:07:46 +0530 Subject: [PATCH] Testnet --- lib/zcash_explorer_web/templates/block/index.html.heex | 8 ++++---- lib/zcash_explorer_web/templates/transaction/tx.html.heex | 2 +- lib/zcash_explorer_web/views/transaction_view.ex | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/zcash_explorer_web/templates/block/index.html.heex b/lib/zcash_explorer_web/templates/block/index.html.heex index 30899ba..a0d7d54 100644 --- a/lib/zcash_explorer_web/templates/block/index.html.heex +++ b/lib/zcash_explorer_web/templates/block/index.html.heex @@ -76,7 +76,7 @@ Input total
- <%= input_total @block_data.tx %> <%= if @zcash_network == "main", do: "ZEC", else: "TAZ" %> + <%= input_total @block_data.tx %> <%= if @zcash_network == "mainnet", do: "ZEC", else: "TAZ" %>
@@ -84,7 +84,7 @@ Output total
- <%= output_total @block_data.tx %> <%= if @zcash_network == "main", do: "ZEC", else: "TAZ" %> + <%= output_total @block_data.tx %> <%= if @zcash_network == "mainnet", do: "ZEC", else: "TAZ" %>
@@ -92,7 +92,7 @@ Output total
- <%= output_total @block_data.tx %> <%= if @zcash_network == "main", do: "ZEC", else: "TAZ" %> + <%= output_total @block_data.tx %> <%= if @zcash_network == "mainnet", do: "ZEC", else: "TAZ" %>
@@ -174,7 +174,7 @@ Outputs - Output (<%= if @zcash_network == "main", do: "ZEC", else: "TAZ" %>) + Output (<%= if @zcash_network == "mainnet", do: "ZEC", else: "TAZ" %>) Tx Type diff --git a/lib/zcash_explorer_web/templates/transaction/tx.html.heex b/lib/zcash_explorer_web/templates/transaction/tx.html.heex index 0a65a63..4bffd3e 100644 --- a/lib/zcash_explorer_web/templates/transaction/tx.html.heex +++ b/lib/zcash_explorer_web/templates/transaction/tx.html.heex @@ -169,7 +169,7 @@
<%= if ZcashExplorerWeb.BlockView.tx_type(@tx) == "coinbase" do %> - 0.0 <%= if @zcash_network == "main", do: "ZEC", else: "TAZ" %> + 0.0 <%= if @zcash_network == "mainnet", do: "ZEC", else: "TAZ" %> <% end %> <%= if ZcashExplorerWeb.BlockView.tx_type(@tx) == "transparent" do %> <%= transparent_tx_fee(@tx) %> diff --git a/lib/zcash_explorer_web/views/transaction_view.ex b/lib/zcash_explorer_web/views/transaction_view.ex index 0afca08..fe05c98 100644 --- a/lib/zcash_explorer_web/views/transaction_view.ex +++ b/lib/zcash_explorer_web/views/transaction_view.ex @@ -21,7 +21,7 @@ defmodule ZcashExplorerWeb.TransactionView do def format_zec(value) when value != nil do zcash_network = Application.get_env(:zcash_explorer, Zcashex)[:zcash_network] - currency = if zcash_network == "main", do: "ZEC", else: "TAZ" + currency = if zcash_network == "mainnet", do: "ZEC", else: "TAZ" float_value = (value + 0.0) |> :erlang.float_to_binary([:compact, {:decimals, 10}]) float_value <> " " <> currency end