+
<%= gettext "Input" %>
+
+ <%= case @decoded_input_data do %>
+ <% {:error, :contract_not_verified} -> %>
+
+ <%= gettext "To see decoded input data, the contract must be verified." %>
+ <%= case @transaction do %>
+ <% %{to_address: %{hash: hash}} -> %>
+ <%= gettext "Verify the contract " %>
<%= gettext "here" %>
+ <% _ -> %>
+ <%= nil %>
+ <% end %>
+
+ <% {:ok, method_id, text, mapping} -> %>
+
" class="table thead-light table-bordered table-responsive transaction-info-table">
+
+ <%= gettext "Method Id" %> |
+ 0x<%= method_id %> |
+
+
+ Call |
+ <%= text %> |
+
+
+
+
" class="table thead-light table-bordered table-responsive">
+
+ |
+ <%= gettext "Name" %> |
+ <%= gettext "Type" %> |
+ <%= gettext "Data" %> |
+
+ <%= for {name, type, value} <- mapping do %>
+
+
+ <% copy_text = BlockScoutWeb.ABIEncodedValueView.copy_text(type, value) %>
+
+ |
+ <%= name %> |
+ <%= type %> |
+
+ <%= BlockScoutWeb.ABIEncodedValueView.value_html(type, value) %>
+ |
+
+ <% end %>
+
+ <% _ -> %>
+
+ <%= gettext "Failed to decode input data." %>
+
+ <% end %>
+