|
|
|
@ -6,19 +6,24 @@ |
|
|
|
|
<%= render BlockScoutWeb.AddressView, "_tabs.html", assigns %> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<%= for {contract, _i} <- Enum.with_index(@address.decompiled_smart_contracts) do %> |
|
|
|
|
<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> |
|
|
|
|
<div class="d-flex justify-content-between align-items-baseline"> |
|
|
|
|
<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" %> |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
<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> |
|
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
</section> |
|
|
|
|