From 1d070832cf235428ed8fd5947643f05e6831b0cd Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 5 Sep 2016 21:47:15 +0200 Subject: [PATCH] - alpha 8 version - fix vm provider --- package.json | 2 +- src/web3Provider/web3Providers.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d3b2bd054d..20b211e2b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ethereum-remix", - "version": "0.0.2-alpha.0.0.7", + "version": "0.0.2-alpha.0.0.8", "description": "Ethereum IDE and tools for the web", "contributors": [ { diff --git a/src/web3Provider/web3Providers.js b/src/web3Provider/web3Providers.js index 8ce7f7285a..2dfb575545 100644 --- a/src/web3Provider/web3Providers.js +++ b/src/web3Provider/web3Providers.js @@ -10,7 +10,7 @@ Web3Providers.prototype.addProvider = function (type, obj) { var web3 = init.loadWeb3() this.addWeb3(type, web3) } else if (type === 'vm') { - this.addVM(obj) + this.addVM(type, obj) } else { init.extendWeb3(obj) this.addWeb3(type, obj) @@ -29,10 +29,10 @@ Web3Providers.prototype.addWeb3 = function (type, web3) { this.modes[type] = web3 } -Web3Providers.prototype.addVM = function (vm) { +Web3Providers.prototype.addVM = function (type, vm) { var vmProvider = new Web3VMProvider() vmProvider.setVM(vm) - this.modes['VM'] = vmProvider + this.modes[type] = vmProvider } module.exports = Web3Providers