Commit 1e65fec8 authored by yann300's avatar yann300

init state at each reload

parent 415b1cf1
...@@ -19,6 +19,8 @@ function SolidityState (_parent, _traceManager, _codeManager, _solidityProxy) { ...@@ -19,6 +19,8 @@ function SolidityState (_parent, _traceManager, _codeManager, _solidityProxy) {
this.init() this.init()
this.view this.view
this.stateVariablesByAddresses = {} this.stateVariablesByAddresses = {}
_parent.event.register('traceUnloaded', () => { this.stateVariablesByAddresses = {} })
_parent.event.register('newTraceLoaded', () => { this.stateVariablesByAddresses = {} })
} }
SolidityState.prototype.render = function () { SolidityState.prototype.render = function () {
......
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