From 346e568945626f8de14faabde874cb2e59b04b20 Mon Sep 17 00:00:00 2001 From: Doc Ritezel Date: Thu, 15 Feb 2018 12:28:49 -0800 Subject: [PATCH] Contributor sees that a failed Transaction has Failed in its status --- lib/explorer/forms/transaction_form.ex | 4 +- priv/gettext/default.pot | 135 +++++++++++------- priv/gettext/en/LC_MESSAGES/default.po | 135 +++++++++++------- test/explorer/forms/transaction_form_test.exs | 4 +- 4 files changed, 164 insertions(+), 114 deletions(-) diff --git a/lib/explorer/forms/transaction_form.ex b/lib/explorer/forms/transaction_form.ex index 9dcd6a3ed6..fe6a078cdb 100644 --- a/lib/explorer/forms/transaction_form.ex +++ b/lib/explorer/forms/transaction_form.ex @@ -69,7 +69,7 @@ defmodule Explorer.TransactionForm do def status(transaction, receipt) do %{ - 0 => %{true => :out_of_gas, false => :failure}, + 0 => %{true => :out_of_gas, false => :failed}, 1 => %{true => :success, false => :success} } |> Map.get(receipt.status, %{true: :pending, false: :pending}) @@ -79,7 +79,7 @@ defmodule Explorer.TransactionForm do def format_status(status) do %{ out_of_gas: gettext("Out of Gas"), - failure: gettext("Failure"), + failed: gettext("Failed"), success: gettext("Success"), pending: gettext("Pending"), } |> Map.fetch!(status) diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 2abcddcfe5..d7b23cce53 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -1,14 +1,16 @@ #: lib/explorer_web/templates/block/index.html.eex:12 +#: lib/explorer_web/templates/block_transaction/index.html.eex:17 #: lib/explorer_web/templates/chain/show.html.eex:61 #: lib/explorer_web/templates/chain/show.html.eex:89 -#: lib/explorer_web/templates/transaction/index.html.eex:17 -#: lib/explorer_web/templates/transaction/show.html.eex:34 +#: lib/explorer_web/templates/transaction/index.html.eex:18 +#: lib/explorer_web/templates/transaction/show.html.eex:39 msgid "Age" msgstr "" +#: lib/explorer_web/templates/block_transaction/index.html.eex:16 #: lib/explorer_web/templates/chain/show.html.eex:28 #: lib/explorer_web/templates/chain/show.html.eex:88 -#: lib/explorer_web/templates/transaction/index.html.eex:16 +#: lib/explorer_web/templates/transaction/index.html.eex:17 msgid "Block" msgstr "" @@ -22,15 +24,16 @@ msgid "Copyright %{year} POA" msgstr "" #: lib/explorer_web/templates/block/index.html.eex:14 -#: lib/explorer_web/templates/block/show.html.eex:53 +#: lib/explorer_web/templates/block/show.html.eex:54 #: lib/explorer_web/templates/chain/show.html.eex:63 msgid "Gas Used" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:25 +#: lib/explorer_web/templates/block/show.html.eex:26 +#: lib/explorer_web/templates/block_transaction/index.html.eex:15 #: lib/explorer_web/templates/chain/show.html.eex:87 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:15 -#: lib/explorer_web/templates/transaction/index.html.eex:15 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:16 +#: lib/explorer_web/templates/transaction/index.html.eex:16 msgid "Hash" msgstr "" @@ -45,7 +48,9 @@ msgid "POA Network Explorer" msgstr "" #: lib/explorer_web/templates/block/index.html.eex:13 -#: lib/explorer_web/templates/block/show.html.eex:21 +#: lib/explorer_web/templates/block/show.html.eex:8 +#: lib/explorer_web/templates/block/show.html.eex:22 +#: lib/explorer_web/templates/block_transaction/index.html.eex:8 #: lib/explorer_web/templates/chain/show.html.eex:43 #: lib/explorer_web/templates/chain/show.html.eex:62 #: lib/explorer_web/templates/chain/show.html.eex:81 @@ -55,57 +60,59 @@ msgstr "" msgid "Transactions" msgstr "" +#: lib/explorer_web/templates/block_transaction/index.html.eex:20 #: lib/explorer_web/templates/chain/show.html.eex:90 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:19 -#: lib/explorer_web/templates/transaction/index.html.eex:20 -#: lib/explorer_web/templates/transaction/show.html.eex:38 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:20 +#: lib/explorer_web/templates/transaction/index.html.eex:21 +#: lib/explorer_web/templates/transaction/show.html.eex:43 msgid "Value" msgstr "" #: lib/explorer_web/templates/block/show.html.eex:3 +#: lib/explorer_web/templates/block_transaction/index.html.eex:3 msgid "Block #%{number} Details" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:37 +#: lib/explorer_web/templates/block/show.html.eex:38 msgid "Difficulty" msgstr "" #: lib/explorer_web/templates/block/index.html.eex:15 -#: lib/explorer_web/templates/block/show.html.eex:57 -#: lib/explorer_web/templates/transaction/show.html.eex:74 +#: lib/explorer_web/templates/block/show.html.eex:58 +#: lib/explorer_web/templates/transaction/show.html.eex:79 msgid "Gas Limit" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:33 +#: lib/explorer_web/templates/block/show.html.eex:34 msgid "Miner" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:61 -#: lib/explorer_web/templates/transaction/show.html.eex:86 +#: lib/explorer_web/templates/block/show.html.eex:62 +#: lib/explorer_web/templates/transaction/show.html.eex:91 msgid "Nonce" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:13 +#: lib/explorer_web/templates/block/show.html.eex:14 msgid "Number" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:29 +#: lib/explorer_web/templates/block/show.html.eex:30 msgid "Parent Hash" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:49 +#: lib/explorer_web/templates/block/show.html.eex:50 msgid "Size" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:17 +#: lib/explorer_web/templates/block/show.html.eex:18 msgid "Timestamp" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:45 +#: lib/explorer_web/templates/block/show.html.eex:46 msgid "Total Difficulty" msgstr "" -#: lib/explorer_web/templates/transaction/show.html.eex:23 +#: lib/explorer_web/templates/transaction/show.html.eex:28 msgid "Block Number" msgstr "" @@ -113,7 +120,7 @@ msgstr "" msgid "Transaction Details" msgstr "" -#: lib/explorer_web/templates/transaction/show.html.eex:82 +#: lib/explorer_web/templates/transaction/show.html.eex:87 msgid "Cumulative Gas Used" msgstr "" @@ -122,19 +129,19 @@ msgid "Gas" msgstr "" #: lib/explorer_web/templates/block/index.html.eex:16 -#: lib/explorer_web/templates/transaction/show.html.eex:78 +#: lib/explorer_web/templates/transaction/show.html.eex:83 msgid "Gas Price" msgstr "" -#: lib/explorer_web/templates/transaction/show.html.eex:90 +#: lib/explorer_web/templates/transaction/show.html.eex:95 msgid "Input" msgstr "" -#: lib/explorer_web/templates/transaction/show.html.eex:29 +#: lib/explorer_web/templates/transaction/show.html.eex:34 msgid "%{confirmations} block confirmations" msgstr "" -#: lib/explorer_web/templates/block/show.html.eex:22 +#: lib/explorer_web/templates/block/show.html.eex:23 msgid "%{count} transactions in this block" msgstr "" @@ -143,25 +150,28 @@ msgstr "" msgid "Address" msgstr "" -#: lib/explorer_web/templates/pending_transaction/index.html.eex:17 -#: lib/explorer_web/templates/transaction/index.html.eex:18 -#: lib/explorer_web/templates/transaction/show.html.eex:42 +#: lib/explorer_web/templates/block_transaction/index.html.eex:18 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:18 +#: lib/explorer_web/templates/transaction/index.html.eex:19 +#: lib/explorer_web/templates/transaction/show.html.eex:47 msgid "From" msgstr "" #: lib/explorer_web/templates/block/show.html.eex:7 +#: lib/explorer_web/templates/block_transaction/index.html.eex:7 #: lib/explorer_web/templates/transaction/show.html.eex:8 #: lib/explorer_web/templates/transaction_log/index.html.eex:8 msgid "Overview" msgstr "" -#: lib/explorer/forms/transaction_form.ex:65 +#: lib/explorer/forms/transaction_form.ex:83 msgid "Success" msgstr "" -#: lib/explorer_web/templates/pending_transaction/index.html.eex:18 -#: lib/explorer_web/templates/transaction/index.html.eex:19 -#: lib/explorer_web/templates/transaction/show.html.eex:52 +#: lib/explorer_web/templates/block_transaction/index.html.eex:19 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:19 +#: lib/explorer_web/templates/transaction/index.html.eex:20 +#: lib/explorer_web/templates/transaction/show.html.eex:57 msgid "To" msgstr "" @@ -178,10 +188,11 @@ msgid "Balance" msgstr "" #: lib/explorer_web/templates/address/show.html.eex:11 +#: lib/explorer_web/templates/block_transaction/index.html.eex:46 #: lib/explorer_web/templates/chain/show.html.eex:103 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:43 -#: lib/explorer_web/templates/transaction/index.html.eex:41 -#: lib/explorer_web/templates/transaction/show.html.eex:39 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:49 +#: lib/explorer_web/templates/transaction/index.html.eex:47 +#: lib/explorer_web/templates/transaction/show.html.eex:44 msgid "POA" msgstr "" @@ -197,29 +208,26 @@ msgstr "" msgid "Showing %{count} Transactions" msgstr "" -#: lib/explorer/forms/transaction_form.ex:40 -#: lib/explorer/forms/transaction_form.ex:44 -#: lib/explorer/forms/transaction_form.ex:48 -#: lib/explorer/forms/transaction_form.ex:67 +#: lib/explorer/forms/transaction_form.ex:42 +#: lib/explorer/forms/transaction_form.ex:46 +#: lib/explorer/forms/transaction_form.ex:50 +#: lib/explorer/forms/transaction_form.ex:54 +#: lib/explorer/forms/transaction_form.ex:84 #: lib/explorer_web/templates/pending_transaction/index.html.eex:9 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:33 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:40 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:39 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:46 #: lib/explorer_web/templates/transaction/index.html.eex:9 -#: lib/explorer_web/templates/transaction/show.html.eex:47 -#: lib/explorer_web/templates/transaction/show.html.eex:57 +#: lib/explorer_web/templates/transaction/show.html.eex:52 +#: lib/explorer_web/templates/transaction/show.html.eex:62 msgid "Pending" msgstr "" -#: lib/explorer/forms/transaction_form.ex:65 -msgid "Failure" -msgstr "" - -#: lib/explorer_web/templates/transaction/show.html.eex:66 +#: lib/explorer_web/templates/transaction/show.html.eex:71 msgid "First Seen" msgstr "" -#: lib/explorer_web/templates/pending_transaction/index.html.eex:16 -#: lib/explorer_web/templates/transaction/show.html.eex:70 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:17 +#: lib/explorer_web/templates/transaction/show.html.eex:75 msgid "Last Seen" msgstr "" @@ -268,7 +276,24 @@ msgstr "" msgid "TPM" msgstr "" -#, elixir-format -#: lib/explorer_web/templates/transaction/index.html.eex:46 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:54 +#: lib/explorer_web/templates/transaction/index.html.eex:52 msgid "Next Page" msgstr "" + +#, elixir-format +#: lib/explorer/forms/transaction_form.ex:82 +msgid "Failed" +msgstr "" + +#, elixir-format +#: lib/explorer/forms/transaction_form.ex:81 +msgid "Out of Gas" +msgstr "" + +#, elixir-format +#: lib/explorer_web/templates/block_transaction/index.html.eex:14 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:15 +#: lib/explorer_web/templates/transaction/index.html.eex:15 +msgid "Status" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 0796a741c8..7af8c896dc 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -11,16 +11,18 @@ msgstr "" "Language: en\n" #: lib/explorer_web/templates/block/index.html.eex:12 +#: lib/explorer_web/templates/block_transaction/index.html.eex:17 #: lib/explorer_web/templates/chain/show.html.eex:61 #: lib/explorer_web/templates/chain/show.html.eex:89 -#: lib/explorer_web/templates/transaction/index.html.eex:17 -#: lib/explorer_web/templates/transaction/show.html.eex:34 +#: lib/explorer_web/templates/transaction/index.html.eex:18 +#: lib/explorer_web/templates/transaction/show.html.eex:39 msgid "Age" msgstr "Age" +#: lib/explorer_web/templates/block_transaction/index.html.eex:16 #: lib/explorer_web/templates/chain/show.html.eex:28 #: lib/explorer_web/templates/chain/show.html.eex:88 -#: lib/explorer_web/templates/transaction/index.html.eex:16 +#: lib/explorer_web/templates/transaction/index.html.eex:17 msgid "Block" msgstr "Block" @@ -34,15 +36,16 @@ msgid "Copyright %{year} POA" msgstr "%{year} POA Network Ltd. All rights reserved" #: lib/explorer_web/templates/block/index.html.eex:14 -#: lib/explorer_web/templates/block/show.html.eex:53 +#: lib/explorer_web/templates/block/show.html.eex:54 #: lib/explorer_web/templates/chain/show.html.eex:63 msgid "Gas Used" msgstr "Gas Used" -#: lib/explorer_web/templates/block/show.html.eex:25 +#: lib/explorer_web/templates/block/show.html.eex:26 +#: lib/explorer_web/templates/block_transaction/index.html.eex:15 #: lib/explorer_web/templates/chain/show.html.eex:87 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:15 -#: lib/explorer_web/templates/transaction/index.html.eex:15 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:16 +#: lib/explorer_web/templates/transaction/index.html.eex:16 msgid "Hash" msgstr "Hash" @@ -57,7 +60,9 @@ msgid "POA Network Explorer" msgstr "POA Network Explorer" #: lib/explorer_web/templates/block/index.html.eex:13 -#: lib/explorer_web/templates/block/show.html.eex:21 +#: lib/explorer_web/templates/block/show.html.eex:8 +#: lib/explorer_web/templates/block/show.html.eex:22 +#: lib/explorer_web/templates/block_transaction/index.html.eex:8 #: lib/explorer_web/templates/chain/show.html.eex:43 #: lib/explorer_web/templates/chain/show.html.eex:62 #: lib/explorer_web/templates/chain/show.html.eex:81 @@ -67,57 +72,59 @@ msgstr "POA Network Explorer" msgid "Transactions" msgstr "Transactions" +#: lib/explorer_web/templates/block_transaction/index.html.eex:20 #: lib/explorer_web/templates/chain/show.html.eex:90 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:19 -#: lib/explorer_web/templates/transaction/index.html.eex:20 -#: lib/explorer_web/templates/transaction/show.html.eex:38 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:20 +#: lib/explorer_web/templates/transaction/index.html.eex:21 +#: lib/explorer_web/templates/transaction/show.html.eex:43 msgid "Value" msgstr "Value" #: lib/explorer_web/templates/block/show.html.eex:3 +#: lib/explorer_web/templates/block_transaction/index.html.eex:3 msgid "Block #%{number} Details" msgstr "Block #%{number} Details" -#: lib/explorer_web/templates/block/show.html.eex:37 +#: lib/explorer_web/templates/block/show.html.eex:38 msgid "Difficulty" msgstr "Difficulty" #: lib/explorer_web/templates/block/index.html.eex:15 -#: lib/explorer_web/templates/block/show.html.eex:57 -#: lib/explorer_web/templates/transaction/show.html.eex:74 +#: lib/explorer_web/templates/block/show.html.eex:58 +#: lib/explorer_web/templates/transaction/show.html.eex:79 msgid "Gas Limit" msgstr "Gas Limit" -#: lib/explorer_web/templates/block/show.html.eex:33 +#: lib/explorer_web/templates/block/show.html.eex:34 msgid "Miner" msgstr "Validator" -#: lib/explorer_web/templates/block/show.html.eex:61 -#: lib/explorer_web/templates/transaction/show.html.eex:86 +#: lib/explorer_web/templates/block/show.html.eex:62 +#: lib/explorer_web/templates/transaction/show.html.eex:91 msgid "Nonce" msgstr "Nonce" -#: lib/explorer_web/templates/block/show.html.eex:13 +#: lib/explorer_web/templates/block/show.html.eex:14 msgid "Number" msgstr "Height" -#: lib/explorer_web/templates/block/show.html.eex:29 +#: lib/explorer_web/templates/block/show.html.eex:30 msgid "Parent Hash" msgstr "Parent Hash" -#: lib/explorer_web/templates/block/show.html.eex:49 +#: lib/explorer_web/templates/block/show.html.eex:50 msgid "Size" msgstr "Size" -#: lib/explorer_web/templates/block/show.html.eex:17 +#: lib/explorer_web/templates/block/show.html.eex:18 msgid "Timestamp" msgstr "Timestamp" -#: lib/explorer_web/templates/block/show.html.eex:45 +#: lib/explorer_web/templates/block/show.html.eex:46 msgid "Total Difficulty" msgstr "Total Difficulty" -#: lib/explorer_web/templates/transaction/show.html.eex:23 +#: lib/explorer_web/templates/transaction/show.html.eex:28 msgid "Block Number" msgstr "Block Height" @@ -125,7 +132,7 @@ msgstr "Block Height" msgid "Transaction Details" msgstr "Transaction Details" -#: lib/explorer_web/templates/transaction/show.html.eex:82 +#: lib/explorer_web/templates/transaction/show.html.eex:87 msgid "Cumulative Gas Used" msgstr "Cumulative Gas Used" @@ -134,19 +141,19 @@ msgid "Gas" msgstr "Gas" #: lib/explorer_web/templates/block/index.html.eex:16 -#: lib/explorer_web/templates/transaction/show.html.eex:78 +#: lib/explorer_web/templates/transaction/show.html.eex:83 msgid "Gas Price" msgstr "Gas Price" -#: lib/explorer_web/templates/transaction/show.html.eex:90 +#: lib/explorer_web/templates/transaction/show.html.eex:95 msgid "Input" msgstr "Input" -#: lib/explorer_web/templates/transaction/show.html.eex:29 +#: lib/explorer_web/templates/transaction/show.html.eex:34 msgid "%{confirmations} block confirmations" msgstr "%{confirmations} block confirmations" -#: lib/explorer_web/templates/block/show.html.eex:22 +#: lib/explorer_web/templates/block/show.html.eex:23 msgid "%{count} transactions in this block" msgstr "%{count} transactions in this block" @@ -155,25 +162,28 @@ msgstr "%{count} transactions in this block" msgid "Address" msgstr "Address" -#: lib/explorer_web/templates/pending_transaction/index.html.eex:17 -#: lib/explorer_web/templates/transaction/index.html.eex:18 -#: lib/explorer_web/templates/transaction/show.html.eex:42 +#: lib/explorer_web/templates/block_transaction/index.html.eex:18 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:18 +#: lib/explorer_web/templates/transaction/index.html.eex:19 +#: lib/explorer_web/templates/transaction/show.html.eex:47 msgid "From" msgstr "From" #: lib/explorer_web/templates/block/show.html.eex:7 +#: lib/explorer_web/templates/block_transaction/index.html.eex:7 #: lib/explorer_web/templates/transaction/show.html.eex:8 #: lib/explorer_web/templates/transaction_log/index.html.eex:8 msgid "Overview" msgstr "Overview" -#: lib/explorer/forms/transaction_form.ex:65 +#: lib/explorer/forms/transaction_form.ex:83 msgid "Success" msgstr "Success" -#: lib/explorer_web/templates/pending_transaction/index.html.eex:18 -#: lib/explorer_web/templates/transaction/index.html.eex:19 -#: lib/explorer_web/templates/transaction/show.html.eex:52 +#: lib/explorer_web/templates/block_transaction/index.html.eex:19 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:19 +#: lib/explorer_web/templates/transaction/index.html.eex:20 +#: lib/explorer_web/templates/transaction/show.html.eex:57 msgid "To" msgstr "To" @@ -190,10 +200,11 @@ msgid "Balance" msgstr "Balance" #: lib/explorer_web/templates/address/show.html.eex:11 +#: lib/explorer_web/templates/block_transaction/index.html.eex:46 #: lib/explorer_web/templates/chain/show.html.eex:103 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:43 -#: lib/explorer_web/templates/transaction/index.html.eex:41 -#: lib/explorer_web/templates/transaction/show.html.eex:39 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:49 +#: lib/explorer_web/templates/transaction/index.html.eex:47 +#: lib/explorer_web/templates/transaction/show.html.eex:44 msgid "POA" msgstr "POA" @@ -209,29 +220,26 @@ msgstr "Showing #%{start_block} to #%{end_block}" msgid "Showing %{count} Transactions" msgstr "Showing %{count} Transactions" -#: lib/explorer/forms/transaction_form.ex:40 -#: lib/explorer/forms/transaction_form.ex:44 -#: lib/explorer/forms/transaction_form.ex:48 -#: lib/explorer/forms/transaction_form.ex:67 +#: lib/explorer/forms/transaction_form.ex:42 +#: lib/explorer/forms/transaction_form.ex:46 +#: lib/explorer/forms/transaction_form.ex:50 +#: lib/explorer/forms/transaction_form.ex:54 +#: lib/explorer/forms/transaction_form.ex:84 #: lib/explorer_web/templates/pending_transaction/index.html.eex:9 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:33 -#: lib/explorer_web/templates/pending_transaction/index.html.eex:40 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:39 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:46 #: lib/explorer_web/templates/transaction/index.html.eex:9 -#: lib/explorer_web/templates/transaction/show.html.eex:47 -#: lib/explorer_web/templates/transaction/show.html.eex:57 +#: lib/explorer_web/templates/transaction/show.html.eex:52 +#: lib/explorer_web/templates/transaction/show.html.eex:62 msgid "Pending" msgstr "Pending" -#: lib/explorer/forms/transaction_form.ex:65 -msgid "Failure" -msgstr "" - -#: lib/explorer_web/templates/transaction/show.html.eex:66 +#: lib/explorer_web/templates/transaction/show.html.eex:71 msgid "First Seen" msgstr "" -#: lib/explorer_web/templates/pending_transaction/index.html.eex:16 -#: lib/explorer_web/templates/transaction/show.html.eex:70 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:17 +#: lib/explorer_web/templates/transaction/show.html.eex:75 msgid "Last Seen" msgstr "" @@ -280,7 +288,24 @@ msgstr "" msgid "TPM" msgstr "" -#, elixir-format -#: lib/explorer_web/templates/transaction/index.html.eex:46 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:54 +#: lib/explorer_web/templates/transaction/index.html.eex:52 msgid "Next Page" msgstr "" + +#, elixir-format +#: lib/explorer/forms/transaction_form.ex:82 +msgid "Failed" +msgstr "" + +#, elixir-format +#: lib/explorer/forms/transaction_form.ex:81 +msgid "Out of Gas" +msgstr "" + +#, elixir-format +#: lib/explorer_web/templates/block_transaction/index.html.eex:14 +#: lib/explorer_web/templates/pending_transaction/index.html.eex:15 +#: lib/explorer_web/templates/transaction/index.html.eex:15 +msgid "Status" +msgstr "" diff --git a/test/explorer/forms/transaction_form_test.exs b/test/explorer/forms/transaction_form_test.exs index 4fd1236166..43eca49a96 100644 --- a/test/explorer/forms/transaction_form_test.exs +++ b/test/explorer/forms/transaction_form_test.exs @@ -68,8 +68,8 @@ defmodule Explorer.TransactionFormTest do to_address_hash: "0xsleepypuppy", from_address_hash: "0xilovefrogs", confirmations: 23, - status: :failure, - formatted_status: "Failure", + status: :failed, + formatted_status: "Failed", first_seen: "48 years ago", last_seen: "38 years ago", })