Commit 92ea82dd authored by Iuri Matias's avatar Iuri Matias Committed by yann300

add missing new param to offsetToLineColumn

parent b4e0e030
...@@ -61,11 +61,9 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) { ...@@ -61,11 +61,9 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
if (!self._deps.compilersArtefacts['__last']) return if (!self._deps.compilersArtefacts['__last']) return
self.debugger.traceManager.getCurrentCalledAddressAt(index, (error, address) => { self.debugger.traceManager.getCurrentCalledAddressAt(index, (error, address) => {
if (error) return console.log(error) if (error) return console.log(error)
var compilerData = self._deps.compilersArtefacts['__last'].getdata() self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, self.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) {
if (!compilerData) return
self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, compilerData.contracts, function (error, rawLocation) {
if (!error) { if (!error) {
var lineColumnPos = self._deps.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, compilerData.source.sources) var lineColumnPos = self.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, compilerData.source.sources, compilerData.data.sources)
self.event.trigger('newSourceLocation', [lineColumnPos, rawLocation]) self.event.trigger('newSourceLocation', [lineColumnPos, rawLocation])
} else { } else {
self.event.trigger('newSourceLocation', [null]) self.event.trigger('newSourceLocation', [null])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment