Merge pull request #107 from yann300/sourceMappingDecoder

alpha 8 version
pull/7/head
yann300 8 years ago committed by GitHub
commit 32dad0c55a
  1. 2
      package.json
  2. 6
      src/web3Provider/web3Providers.js

@ -1,6 +1,6 @@
{ {
"name": "ethereum-remix", "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", "description": "Ethereum IDE and tools for the web",
"contributors": [ "contributors": [
{ {

@ -10,7 +10,7 @@ Web3Providers.prototype.addProvider = function (type, obj) {
var web3 = init.loadWeb3() var web3 = init.loadWeb3()
this.addWeb3(type, web3) this.addWeb3(type, web3)
} else if (type === 'vm') { } else if (type === 'vm') {
this.addVM(obj) this.addVM(type, obj)
} else { } else {
init.extendWeb3(obj) init.extendWeb3(obj)
this.addWeb3(type, obj) this.addWeb3(type, obj)
@ -29,10 +29,10 @@ Web3Providers.prototype.addWeb3 = function (type, web3) {
this.modes[type] = web3 this.modes[type] = web3
} }
Web3Providers.prototype.addVM = function (vm) { Web3Providers.prototype.addVM = function (type, vm) {
var vmProvider = new Web3VMProvider() var vmProvider = new Web3VMProvider()
vmProvider.setVM(vm) vmProvider.setVM(vm)
this.modes['VM'] = vmProvider this.modes[type] = vmProvider
} }
module.exports = Web3Providers module.exports = Web3Providers

Loading…
Cancel
Save