check if source is available

pull/1/head
yann300 7 years ago
parent d6bc36fd68
commit 1b341af0d1
  1. 2
      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)
}

Loading…
Cancel
Save