Commit f265dffd authored by yann300's avatar yann300

test before adding/removing

parent 9febad6b
...@@ -136,14 +136,18 @@ function ExecutionContext () { ...@@ -136,14 +136,18 @@ function ExecutionContext () {
} }
this.removeProvider = function (name) { this.removeProvider = function (name) {
if (name && this.customNetWorks[name]) {
delete this.customNetWorks[name] delete this.customNetWorks[name]
self.event.trigger('removeProvider', [name]) self.event.trigger('removeProvider', [name])
} }
}
this.addProvider = function (network) { this.addProvider = function (network) {
if (network && network.name && network.url) {
this.customNetWorks[network.name] = network this.customNetWorks[network.name] = network
self.event.trigger('addProvider', [network]) self.event.trigger('addProvider', [network])
} }
}
this.internalWeb3 = function () { this.internalWeb3 = function () {
return web3 return web3
......
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