cleanup; remove unneded callback

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent e486706735
commit 3b7c61bdc9
  1. 14
      src/app/debugger/debuggerUI/VmDebugger.js

@ -115,9 +115,8 @@ class VmDebuggerLogic {
self._traceManager.getCurrentCalledAddressAt(index, (error, address) => { self._traceManager.getCurrentCalledAddressAt(index, (error, address) => {
if (error) return if (error) return
if (!self.storageResolver){ if (!self.storageResolver) return
return;
}
var storageViewer = new StorageViewer({ stepIndex: self._parentUI.currentStepIndex, tx: self._parentUI.tx, address: address }, self.storageResolver, self._traceManager) var storageViewer = new StorageViewer({ stepIndex: self._parentUI.currentStepIndex, tx: self._parentUI.tx, address: address }, self.storageResolver, self._traceManager)
storageViewer.storageRange((error, storage) => { storageViewer.storageRange((error, storage) => {
@ -150,7 +149,6 @@ class VmDebuggerLogic {
self._traceManager.getRemainingGas(index, function (error, remaining) { self._traceManager.getRemainingGas(index, function (error, remaining) {
self.event.trigger('traceRemainingGasUpdate', [error, remaining]) self.event.trigger('traceRemainingGasUpdate', [error, remaining])
}) })
}) })
} }
@ -183,12 +181,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, function () { _parentUI.debugger.event.register('traceUnloaded', this.stepDetail.reset.bind(this.stepDetail))
self.stepDetail.reset() _parentUI.debugger.event.register('newTraceLoaded', this.stepDetail.reset.bind(this.stepDetail))
})
_parentUI.debugger.event.register('newTraceLoaded', this, function () {
self.stepDetail.reset()
})
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))

Loading…
Cancel
Save