|
|
@ -6,19 +6,24 @@ |
|
|
|
<%= render BlockScoutWeb.AddressView, "_tabs.html", assigns %> |
|
|
|
<%= render BlockScoutWeb.AddressView, "_tabs.html", assigns %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= for {contract, _i} <- Enum.with_index(@address.decompiled_smart_contracts) do %> |
|
|
|
<div class="card-body"> |
|
|
|
<div class="card-body"> |
|
|
|
|
|
|
|
<h3><%= gettext "Decompiler version" %></h3> |
|
|
|
|
|
|
|
<div class="tile tile-muted"> |
|
|
|
|
|
|
|
<pre class="pre-wrap pre-scrollable"><code class="nohighlight"><%= contract.decompiler_version %></code></pre> |
|
|
|
|
|
|
|
</div> |
|
|
|
<section> |
|
|
|
<section> |
|
|
|
<div class="d-flex justify-content-between align-items-baseline"> |
|
|
|
<div class="d-flex justify-content-between align-items-baseline"> |
|
|
|
<h3><%= gettext "Decompiled contract code" %></h3> |
|
|
|
<h3><%= gettext "Decompiled contract code" %></h3> |
|
|
|
<button type="button" class="button button-secondary button-sm" id="button" data-clipboard-text="<%= List.first(@address.decompiled_smart_contracts).decompiled_source_code %>" aria-label="copy decompiled contract code"> |
|
|
|
<button type="button" class="button button-secondary button-sm" id="button" data-clipboard-text="<%= contract.decompiled_source_code %>" aria-label="copy decompiled contract code"> |
|
|
|
<%= gettext "Copy Decompiled Contract Code" %> |
|
|
|
<%= gettext "Copy Decompiled Contract Code" %> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="tile tile-muted"> |
|
|
|
<div class="tile tile-muted"> |
|
|
|
<pre class="pre-wrap pre-scrollable"><code class="nohighlight"><%= List.first(@address.decompiled_smart_contracts).decompiled_source_code %></code></pre> |
|
|
|
<pre class="pre-wrap pre-scrollable"><code class="nohighlight"><%= contract.decompiled_source_code %></code></pre> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|