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

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

Loading…
Cancel
Save