|
|
|
@ -6,9 +6,8 @@ var StorageViewer = remixDebug.storage.StorageViewer |
|
|
|
|
|
|
|
|
|
class DebuggerSolidityLocals { |
|
|
|
|
|
|
|
|
|
constructor (_parent, tx, _stepManager, _traceManager, _internalTreeCall) { |
|
|
|
|
constructor (tx, _stepManager, _traceManager, _internalTreeCall) { |
|
|
|
|
this.event = new EventManager() |
|
|
|
|
this.parent = _parent |
|
|
|
|
this.stepManager = _stepManager |
|
|
|
|
this.internalTreeCall = _internalTreeCall |
|
|
|
|
this.storageResolver = null |
|
|
|
@ -16,10 +15,9 @@ class DebuggerSolidityLocals { |
|
|
|
|
this.tx = tx |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
init () { |
|
|
|
|
init (sourceLocation) { |
|
|
|
|
const self = this |
|
|
|
|
var decodeTimeout = null |
|
|
|
|
this.parent.event.register('sourceLocationChanged', this, (sourceLocation) => { |
|
|
|
|
if (!this.storageResolver) { |
|
|
|
|
return self.event.trigger('solidityLocalsMessage', ['storage not ready']) |
|
|
|
|
} |
|
|
|
@ -30,7 +28,6 @@ class DebuggerSolidityLocals { |
|
|
|
|
decodeTimeout = setTimeout(function () { |
|
|
|
|
self.decode(sourceLocation) |
|
|
|
|
}, 500) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
decode (sourceLocation) { |
|
|
|
|