|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<div data-test="transaction_log" class="tile tile-muted"> |
|
|
|
|
<dl class="row"> |
|
|
|
|
<dt class="col-md-1"> <%= gettext "Address" %> </dt> |
|
|
|
|
<dd class="col-md-11"> |
|
|
|
|
<dt class="col-lg-2"> <%= gettext "Address" %> </dt> |
|
|
|
|
<dd class="col-lg-10"> |
|
|
|
|
<h3 class=""> |
|
|
|
|
<%= link( |
|
|
|
|
@log.address, |
|
|
|
@ -13,8 +13,8 @@ |
|
|
|
|
</dd> |
|
|
|
|
<%= case decode(@log, @transaction) do %> |
|
|
|
|
<% {:error, :contract_not_verified} -> %> |
|
|
|
|
<dt class="col-md-1"><%= gettext "Decoded" %></dt> |
|
|
|
|
<dd class="col-md-11"> |
|
|
|
|
<dt class="col-lg-2"><%= gettext "Decoded" %></dt> |
|
|
|
|
<dd class="col-lg-10"> |
|
|
|
|
<div class="alert alert-info"> |
|
|
|
|
<%= gettext "To see decoded input data, the contract must be verified." %> |
|
|
|
|
<%= case @transaction do %> |
|
|
|
@ -25,16 +25,16 @@ |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
<% {:error, :could_not_decode} -> %> |
|
|
|
|
<dt class="col-md-1"><%= gettext "Decoded" %></dt> |
|
|
|
|
<dd class="col-md-11"> |
|
|
|
|
<dt class="col-lg-2"><%= gettext "Decoded" %></dt> |
|
|
|
|
<dd class="col-lg-10"> |
|
|
|
|
<div class="alert alert-danger"> |
|
|
|
|
<%= gettext "Failed to decode log data." %> |
|
|
|
|
</div> |
|
|
|
|
<% {:error, :no_matching_function} -> %> |
|
|
|
|
<%= nil %> |
|
|
|
|
<% {:ok, method_id, text, mapping} -> %> |
|
|
|
|
<dt class="col-md-1"><%= gettext "Decoded" %></dt> |
|
|
|
|
<dd class="col-md-11"> |
|
|
|
|
<dt class="col-lg-2"><%= gettext "Decoded" %></dt> |
|
|
|
|
<dd class="col-lg-10"> |
|
|
|
|
<table summary="Transaction Info" class="table thead-light table-bordered transaction-input-table"> |
|
|
|
|
<tr> |
|
|
|
|
<td>Method Id</td> |
|
|
|
@ -88,8 +88,8 @@ |
|
|
|
|
<%= nil %> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<dt class="col-md-1"><%= gettext "Topics" %></dt> |
|
|
|
|
<dd class="col-md-11"> |
|
|
|
|
<dt class="col-lg-2"><%= gettext "Topics" %></dt> |
|
|
|
|
<dd class="col-lg-10"> |
|
|
|
|
<div class="raw-transaction-log-topics"> |
|
|
|
|
<%= unless is_nil(@log.first_topic) do %> |
|
|
|
|
<div class="text-dark"> |
|
|
|
@ -117,10 +117,10 @@ |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
</dd> |
|
|
|
|
<dt class="col-md-1"> |
|
|
|
|
<dt class="col-lg-2"> |
|
|
|
|
<%= gettext "Data" %> |
|
|
|
|
</dt> |
|
|
|
|
<dd class="col-md-11"> |
|
|
|
|
<dd class="col-lg-10"> |
|
|
|
|
<%= unless is_nil(@log.data) do %> |
|
|
|
|
<div class="text-dark raw-transaction-log-data"> |
|
|
|
|
<%= @log.data %> |
|
|
|
|