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

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent 32f6fd32bb
commit ee5dc0a491
  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 () {
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 () {

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

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

Loading…
Cancel
Save