">
+ <% decoded_result = decode(@log, @log.transaction) %>
+ <%= case decoded_result do %>
+ <%= {:error, :contract_not_verified, _cadidates} -> %>
+
+ <%= gettext "To see accurate decoded input data, the contract must be verified." %>
+ <%= case @log.transaction do %>
+ <% %{to_address: %{hash: hash}} -> %>
+ <%= gettext "Verify the contract " %>
<%= gettext "here" %>
+ <% _ -> %>
+ <%= nil %>
+ <% end %>
+
+ <% _ -> %>
+ <%= nil %>
+ <% end %>
- <%= gettext "Transaction" %>
-
@@ -11,19 +26,7 @@
) %>
- <%= case decode(@log, @log.transaction) do %>
- <% {:error, :contract_not_verified} -> %>
- - <%= gettext "Decoded" %>
- -
-
- <%= gettext "To see decoded input data, the contract must be verified." %>
- <%= case @log.transaction do %>
- <% %{to_address: %{hash: hash}} -> %>
- <%= gettext "Verify the contract " %>
<%= gettext "here" %>
- <% _ -> %>
- <%= nil %>
- <% end %>
-
+ <%= case decoded_result do %>
<% {:error, :could_not_decode} -> %>
- <%= gettext "Decoded" %>
-
@@ -81,7 +84,61 @@
<% end %>
-
+
+ <% {:error, :contract_not_verified, results} -> %>
+ <%= for {:ok, method_id, text, mapping} <- results do %>
+