fix last event in vmdebugger still not using vmdebugger class; remove unneded params

pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent 049227cc94
commit f31c4bbc95
  1. 9
      src/app/debugger/VmDebugger.js
  2. 6
      src/app/debugger/debuggerUI/VmDebugger.js
  3. 2
      src/app/debugger/debuggerUI/vmDebugger/FullStoragesChanges.js

@ -43,6 +43,15 @@ class VmDebuggerLogic {
this._parent.event.register('traceUnloaded', function () { this._parent.event.register('traceUnloaded', function () {
self.event.trigger('traceUnloaded') self.event.trigger('traceUnloaded')
}) })
// TODO: is it the same?
this._parentUI.debugger.event.register('traceUnloaded', function () {
self.event.trigger('traceUnloaded')
})
this._parentUI.debugger.event.register('newTraceLoaded', function () {
self.event.trigger('newTraceLoaded')
})
} }
listenToCodeManagerEvents () { listenToCodeManagerEvents () {

@ -54,8 +54,8 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca
this.vmDebuggerLogic.event.register('traceManagerStorageUpdate', this.storagePanel.update.bind(this.storagePanel)) this.vmDebuggerLogic.event.register('traceManagerStorageUpdate', this.storagePanel.update.bind(this.storagePanel))
this.stepDetail = new StepDetail() this.stepDetail = new StepDetail()
_parentUI.debugger.event.register('traceUnloaded', this.stepDetail.reset.bind(this.stepDetail)) this.vmDebuggerLogic.event.register('traceUnloaded', this.stepDetail.reset.bind(this.stepDetail))
_parentUI.debugger.event.register('newTraceLoaded', this.stepDetail.reset.bind(this.stepDetail)) this.vmDebuggerLogic.event.register('newTraceLoaded', this.stepDetail.reset.bind(this.stepDetail))
this.vmDebuggerLogic.event.register('traceCurrentStepUpdate', function (error, step) { this.vmDebuggerLogic.event.register('traceCurrentStepUpdate', function (error, step) {
self.stepDetail.updateField('execution step', (error ? '-' : step)) self.stepDetail.updateField('execution step', (error ? '-' : step))
@ -107,7 +107,7 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca
this.returnValuesPanel.data = {} this.returnValuesPanel.data = {}
this.vmDebuggerLogic.event.register('traceReturnValueUpdate', this.returnValuesPanel.update.bind(this.returnValuesPanel)) this.vmDebuggerLogic.event.register('traceReturnValueUpdate', this.returnValuesPanel.update.bind(this.returnValuesPanel))
this.fullStoragesChangesPanel = new FullStoragesChangesPanel(_parentUI, _traceManager) this.fullStoragesChangesPanel = new FullStoragesChangesPanel()
this.addresses = [] this.addresses = []
this.vmDebuggerLogic.event.register('traceAddressesUpdate', function (_addresses) { this.vmDebuggerLogic.event.register('traceAddressesUpdate', function (_addresses) {

@ -1,7 +1,7 @@
var DropdownPanel = require('./DropdownPanel') var DropdownPanel = require('./DropdownPanel')
var yo = require('yo-yo') var yo = require('yo-yo')
function FullStoragesChanges (_parent, _traceManager) { function FullStoragesChanges () {
this.view this.view
this.basicPanel = new DropdownPanel('Full Storages Changes', {json: true}) this.basicPanel = new DropdownPanel('Full Storages Changes', {json: true})
} }

Loading…
Cancel
Save