fix: external library is only for verified contract

pull/2264/head
Victor Baranov 5 years ago
parent 908402151a
commit 85b76342a4
  1. 23
      apps/block_scout_web/lib/block_scout_web/templates/address_contract/index.html.eex

@ -109,18 +109,19 @@
<% end %> <% end %>
</section> </section>
<%= if @address.smart_contract.external_libraries && @address.smart_contract.external_libraries != [] do %> <%= if BlockScoutWeb.AddressView.smart_contract_verified?(@address) do %>
<section> <%= if @address.smart_contract.external_libraries && @address.smart_contract.external_libraries != [] do %>
<div class="d-flex justify-content-between align-items-baseline"> <section>
<h3><%= gettext "External libraries" %></h3> <div class="d-flex justify-content-between align-items-baseline">
</div> <h3><%= gettext "External libraries" %></h3>
<div class="tile tile-muted mb-4"> </div>
<pre class="pre-wrap pre-scrollable"><code class="nohighlight"><%= format_external_libraries(@address.smart_contract.external_libraries) %></code> <div class="tile tile-muted mb-4">
</pre> <pre class="pre-wrap pre-scrollable"><code class="nohighlight"><%= format_external_libraries(@address.smart_contract.external_libraries) %></code>
</div> </pre>
</section> </div>
</section>
<% end %>
<% end %> <% end %>
</div> </div>
</div> </div>
</section> </section>

Loading…
Cancel
Save