Commit 2dde2ac0 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

remove direct reference to tx and pass it as an arg

parent 673b1db7
......@@ -6,13 +6,14 @@ var StorageViewer = remixDebug.storage.StorageViewer
class DebuggerSolidityLocals {
constructor (_parent, _stepManager, _traceManager, _internalTreeCall) {
constructor (_parent, tx, _stepManager, _traceManager, _internalTreeCall) {
this.event = new EventManager()
this.parent = _parent
this.stepManager = _stepManager
this.internalTreeCall = _internalTreeCall
this.storageResolver = null
this.traceManager = _traceManager
this.tx = tx
}
init () {
......
......@@ -6,7 +6,7 @@ var StorageViewer = remixDebug.storage.StorageViewer
class DebuggerSolidityState {
constructor (_parent, _stepManager, _traceManager, _codeManager, _solidityProxy) {
constructor (_parent, tx, _stepManager, _traceManager, _codeManager, _solidityProxy) {
this.event = new EventManager()
this.storageResolver = null
this.parent = _parent
......@@ -15,6 +15,7 @@ class DebuggerSolidityState {
this.codeManager = _codeManager
this.solidityProxy = _solidityProxy
this.stateVariablesByAddresses = {}
this.tx = tx
_parent.event.register('traceUnloaded', () => { this.stateVariablesByAddresses = {} })
_parent.event.register('newTraceLoaded', () => { this.stateVariablesByAddresses = {} })
}
......
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