This commit is contained in:
Vamsi Krishna B 2023-06-15 20:07:46 +05:30
parent 5154507e11
commit a3d6ad0702
3 changed files with 6 additions and 6 deletions

View File

@ -76,7 +76,7 @@
Input total
</dt>
<dd class="mt-1 text-sm text-gray-900 dark:text-gray-50">
<%= 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" %>
</dd>
</div>
<div class="sm:col-span-1">
@ -84,7 +84,7 @@
Output total
</dt>
<dd class="mt-1 text-sm text-gray-900 dark:text-gray-50">
<%= 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" %>
</dd>
</div>
<div class="sm:col-span-1">
@ -92,7 +92,7 @@
Output total
</dt>
<dd class="mt-1 text-sm text-gray-900 dark:text-gray-50">
<%= 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" %>
</dd>
</div>
@ -174,7 +174,7 @@
Outputs
</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Output (<%= if @zcash_network == "main", do: "ZEC", else: "TAZ" %>)
Output (<%= if @zcash_network == "mainnet", do: "ZEC", else: "TAZ" %>)
</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Tx Type

View File

@ -169,7 +169,7 @@
</dt>
<dd class="mt-1 text-sm text-gray-900 dark:text-gray-50">
<%= 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) %>

View File

@ -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