From 2e0a19f1d1787e65a937792be297e9824069ef52 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 27 Mar 2019 11:03:10 +0300 Subject: [PATCH] add decompiled contract tab --- .../templates/address/_tabs.html.eex | 12 ++++++-- .../lib/block_scout_web/views/address_view.ex | 7 +++++ apps/explorer/lib/explorer/chain.ex | 29 ++++++++++++------- 3 files changed, 36 insertions(+), 12 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex index 0c978b83e7..6f904e34e4 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address/_tabs.html.eex @@ -58,10 +58,10 @@ <% end %> - <%= if @address.has_decompiled_code? do %> + <%= if has_decompiled_code?(@address) do %>