From c1b8f3ec73d3dc5c03fdbef65c40144fe15dc2de Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 9 Oct 2018 13:49:10 -0400 Subject: [PATCH] add missing param --- remix-debug/src/debugger/debugger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remix-debug/src/debugger/debugger.js b/remix-debug/src/debugger/debugger.js index e286ec0fdd..f8366c5594 100644 --- a/remix-debug/src/debugger/debugger.js +++ b/remix-debug/src/debugger/debugger.js @@ -27,7 +27,7 @@ function Debugger (options) { }) this.breakPointManager = new remixLib.code.BreakpointManager(this.debugger, (sourceLocation) => { - return self.offsetToLineColumnConverter.offsetToLineColumn(sourceLocation, sourceLocation.file, this.compiler.lastCompilationResult.source.sources) + return self.offsetToLineColumnConverter.offsetToLineColumn(sourceLocation, sourceLocation.file, this.compiler.lastCompilationResult.source.sources, this.compiler.lastCompilationResult.data.sources) }, (step) => { self.event.trigger('breakpointStep', [step]) }) @@ -65,7 +65,7 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) { if (error) return console.log(error) self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, self.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) { if (!error && self.compiler.lastCompilationResult && self.compiler.lastCompilationResult.data) { - var lineColumnPos = self.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, self.compiler.lastCompilationResult.source.sources) + var lineColumnPos = self.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, self.compiler.lastCompilationResult.source.sources, self.compiler.lastCompilationResult.data.sources) self.event.trigger('newSourceLocation', [lineColumnPos, rawLocation]) } else { self.event.trigger('newSourceLocation', [null])