From 7ea90d24817fef6c85e5bb78334007a98b1bea12 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 3 Jan 2018 12:42:58 +0100 Subject: [PATCH] check if source is available --- src/app/contract/contractParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/contract/contractParser.js b/src/app/contract/contractParser.js index 798e5d36a6..a85dda86e5 100644 --- a/src/app/contract/contractParser.js +++ b/src/app/contract/contractParser.js @@ -38,7 +38,7 @@ var getDetails = function (contractName, contract, source) { detail['Runtime Bytecode'] = contract.evm.deployedBytecode } - if (contract.assembly !== null) { + if (source && contract.assembly !== null) { detail['Assembly'] = formatAssemblyText(contract.evm.legacyAssembly, '', source.content) }