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) }