Merge pull request #597 from ethereum/fixvmProvider

Dont set callback if vmprovider already set up
pull/7/head
yann300 7 years ago committed by GitHub
commit c9decd65da
  1. 1
      src/web3Provider/web3VmProvider.js

@ -43,6 +43,7 @@ function web3VmProvider () {
} }
web3VmProvider.prototype.setVM = function (vm) { web3VmProvider.prototype.setVM = function (vm) {
if (this.vm === vm) return
var self = this var self = this
this.vm = vm this.vm = vm
this.vm.on('step', function (data) { this.vm.on('step', function (data) {

Loading…
Cancel
Save