parent
293a2d6acd
commit
afac37e9a3
@ -0,0 +1,20 @@ |
||||
var Debugger = require('../debugger/debugger') |
||||
var executionContext = require('../../execution-context') |
||||
var SourceHighlighter = require('../editor/sourceHighlighter') |
||||
|
||||
class DebuggerUI { |
||||
|
||||
constructor (container) { |
||||
this.transactionDebugger = new Debugger(container, new SourceHighlighter()) |
||||
this.transactionDebugger.addProvider('vm', executionContext.vm()) |
||||
this.transactionDebugger.addProvider('injected', executionContext.internalWeb3()) |
||||
this.transactionDebugger.addProvider('web3', executionContext.internalWeb3()) |
||||
this.transactionDebugger.switchProvider(executionContext.getProvider()) |
||||
} |
||||
|
||||
view () { |
||||
return this.transactionDebugger |
||||
} |
||||
} |
||||
|
||||
module.exports = DebuggerUI |
Loading…
Reference in new issue