Commit 5ad07e3e authored by yann300's avatar yann300

dont set callback if vmprovider already set up

parent fd4b4dd0
......@@ -43,6 +43,7 @@ function web3VmProvider () {
}
web3VmProvider.prototype.setVM = function (vm) {
if (this.vm === vm) return
var self = this
this.vm = vm
this.vm.on('step', function (data) {
......
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