move trace loading check from ui to debugger

pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent 1332edb349
commit a10323f820
  1. 4
      src/app/debugger/debugger/debugger.js
  2. 4
      src/app/debugger/debuggerUI.js

@ -81,6 +81,10 @@ Debugger.prototype.debug = function (blockNumber, txNumber, tx, loadingCb) {
const self = this const self = this
let web3 = this.executionContext.web3() let web3 = this.executionContext.web3()
if (this.debugger.traceManager.isLoading) {
return
}
if (tx) { if (tx) {
if (!tx.to) { if (!tx.to) {
tx.to = traceHelper.contractCreationToken('0') tx.to = traceHelper.contractCreationToken('0')

@ -113,10 +113,6 @@ class DebuggerUI {
startDebugging (blockNumber, txNumber, tx) { startDebugging (blockNumber, txNumber, tx) {
const self = this const self = this
if (this.debugger.traceManager.isLoading) {
return
}
this.transactionDebugger.debug(blockNumber, txNumber, tx, () => { this.transactionDebugger.debug(blockNumber, txNumber, tx, () => {
self.stepManager = new StepManagerUI(this.transactionDebugger.step_manager) self.stepManager = new StepManagerUI(this.transactionDebugger.step_manager)
self.vmDebugger = new VmDebugger(this.transactionDebugger.vmDebuggerLogic) self.vmDebugger = new VmDebugger(this.transactionDebugger.vmDebuggerLogic)

Loading…
Cancel
Save