From 574c29a0311cedeebd264944b99f206e5293ae5e Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 14 Sep 2015 19:35:30 +0200 Subject: [PATCH] Do not display create button if there is no bytecode. --- index.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 8ec51060a5..5aac30d7fe 100644 --- a/index.html +++ b/index.html @@ -661,12 +661,13 @@ input[readonly] { title.click(function(ev){ $(this).parent().toggleClass('hide') }); }; - execInter - .append(getCallButton({ - abi: funABI, - bytecode: contract.bytecode, - appendFunctions: appendFunctions - })); + if (contract.bytecode.length > 0) + execInter + .append(getCallButton({ + abi: funABI, + bytecode: contract.bytecode, + appendFunctions: appendFunctions + })); return execInter; };