continue if deployedByteCode not present

pull/7/head
yann300 5 years ago committed by Aniket
parent 5f89d4a2e0
commit b3a5c1a66c
  1. 2
      remix-lib/src/sourceLocationTracker.js

@ -67,7 +67,7 @@ function getSourceMap (address, code, contracts) {
for (let contract in contracts[file]) {
const bytecode = contracts[file][contract].evm.bytecode
const deployedBytecode = contracts[file][contract].evm.deployedBytecode
if (!deployedBytecode) return bytecode.sourceMap
if (!deployedBytecode) continue
bytes = isCreation ? bytecode.object : deployedBytecode.object
if (util.compareByteCode(code, '0x' + bytes)) {

Loading…
Cancel
Save