|
|
@ -38,26 +38,24 @@ class SolidityLocals { |
|
|
|
|
|
|
|
|
|
|
|
if (this.parent.currentStepIndex !== index) return |
|
|
|
if (this.parent.currentStepIndex !== index) return |
|
|
|
|
|
|
|
|
|
|
|
this.traceManager.waterfall([ |
|
|
|
this.parent.event.register('sourceLocationChanged', this, (sourceLocation) => { |
|
|
|
this.traceManager.getStackAt, |
|
|
|
this.traceManager.waterfall([ |
|
|
|
this.traceManager.getMemoryAt], |
|
|
|
this.traceManager.getStackAt, |
|
|
|
index, |
|
|
|
this.traceManager.getMemoryAt], |
|
|
|
(error, result) => { |
|
|
|
index, |
|
|
|
if (!error) { |
|
|
|
(error, result) => { |
|
|
|
var stack = result[0].value |
|
|
|
if (!error) { |
|
|
|
var memory = result[1].value |
|
|
|
var stack = result[0].value |
|
|
|
try { |
|
|
|
var memory = result[1].value |
|
|
|
this.traceManager.getStorageAt(index, this.parent.tx, (error, storage) => { |
|
|
|
try { |
|
|
|
if (!error) { |
|
|
|
var locals = localDecoder.solidityLocals(index, this.internalTreeCall, stack, memory, sourceLocation) |
|
|
|
var locals = localDecoder.solidityLocals(index, this.internalTreeCall, stack, memory, storage) |
|
|
|
this.basicPanel.update(locals) |
|
|
|
this.basicPanel.update(locals) |
|
|
|
} catch (e) { |
|
|
|
} |
|
|
|
warningDiv.innerHTML = e.message |
|
|
|
}) |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
warningDiv.innerHTML = e.message |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|