check if source is available

pull/3094/head
yann300 7 years ago
parent a59ccdcce0
commit 7ea90d2481
  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