Commit b9a0699c authored by Iuri Matias's avatar Iuri Matias Committed by yann300

move trace loading check from ui to debugger

parent 683fa629
......@@ -81,6 +81,10 @@ Debugger.prototype.debug = function (blockNumber, txNumber, tx, loadingCb) {
const self = this
let web3 = this.executionContext.web3()
if (this.debugger.traceManager.isLoading) {
return
}
if (tx) {
if (!tx.to) {
tx.to = traceHelper.contractCreationToken('0')
......
......@@ -113,10 +113,6 @@ class DebuggerUI {
startDebugging (blockNumber, txNumber, tx) {
const self = this
if (this.debugger.traceManager.isLoading) {
return
}
this.transactionDebugger.debug(blockNumber, txNumber, tx, () => {
self.stepManager = new StepManagerUI(this.transactionDebugger.step_manager)
self.vmDebugger = new VmDebugger(this.transactionDebugger.vmDebuggerLogic)
......
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