init providers only after already listening to events

pull/5370/head
Iuri Matias 6 years ago
parent 11b933ea67
commit 888e01a6a7
  1. 3
      remix-debug/test.js

@ -34,11 +34,12 @@ _debugger = new Debugger({
})
// with vm
contextManager.initProviders()
contextManager.event.register('providerChanged', () => {
_debugger.updateWeb3(contextManager.getWeb3())
})
contextManager.initProviders()
contextManager.switchProvider('vm')
_debugger.event.register('debuggerStatus', function (isActive) {

Loading…
Cancel
Save