diff --git a/remix-lib/src/sourceLocationTracker.js b/remix-lib/src/sourceLocationTracker.js index 9161b68a42..10366776b3 100644 --- a/remix-lib/src/sourceLocationTracker.js +++ b/remix-lib/src/sourceLocationTracker.js @@ -68,7 +68,7 @@ function getSourceMap (address, code, contracts) { const bytecode = contracts[file][contract].evm.bytecode const deployedBytecode = contracts[file][contract].evm.deployedBytecode if (!deployedBytecode) return bytecode.sourceMap - + bytes = isCreation ? bytecode.object : deployedBytecode.object if (util.compareByteCode(code, '0x' + bytes)) { return isCreation ? bytecode.sourceMap : deployedBytecode.sourceMap