remove direct reference to tx and pass it as an arg

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent 673b1db782
commit 2dde2ac003
  1. 3
      src/app/debugger/debugger/SolidityLocals.js
  2. 3
      src/app/debugger/debugger/solidityState.js

@ -6,13 +6,14 @@ var StorageViewer = remixDebug.storage.StorageViewer
class DebuggerSolidityLocals { class DebuggerSolidityLocals {
constructor (_parent, _stepManager, _traceManager, _internalTreeCall) { constructor (_parent, tx, _stepManager, _traceManager, _internalTreeCall) {
this.event = new EventManager() this.event = new EventManager()
this.parent = _parent this.parent = _parent
this.stepManager = _stepManager this.stepManager = _stepManager
this.internalTreeCall = _internalTreeCall this.internalTreeCall = _internalTreeCall
this.storageResolver = null this.storageResolver = null
this.traceManager = _traceManager this.traceManager = _traceManager
this.tx = tx
} }
init () { init () {

@ -6,7 +6,7 @@ var StorageViewer = remixDebug.storage.StorageViewer
class DebuggerSolidityState { class DebuggerSolidityState {
constructor (_parent, _stepManager, _traceManager, _codeManager, _solidityProxy) { constructor (_parent, tx, _stepManager, _traceManager, _codeManager, _solidityProxy) {
this.event = new EventManager() this.event = new EventManager()
this.storageResolver = null this.storageResolver = null
this.parent = _parent this.parent = _parent
@ -15,6 +15,7 @@ class DebuggerSolidityState {
this.codeManager = _codeManager this.codeManager = _codeManager
this.solidityProxy = _solidityProxy this.solidityProxy = _solidityProxy
this.stateVariablesByAddresses = {} this.stateVariablesByAddresses = {}
this.tx = tx
_parent.event.register('traceUnloaded', () => { this.stateVariablesByAddresses = {} }) _parent.event.register('traceUnloaded', () => { this.stateVariablesByAddresses = {} })
_parent.event.register('newTraceLoaded', () => { this.stateVariablesByAddresses = {} }) _parent.event.register('newTraceLoaded', () => { this.stateVariablesByAddresses = {} })
} }

Loading…
Cancel
Save