|
|
@ -132,9 +132,9 @@ export class ExecutionContext { |
|
|
|
if (!infoCb) infoCb = () => { /* Do nothing. */ }
|
|
|
|
if (!infoCb) infoCb = () => { /* Do nothing. */ }
|
|
|
|
if (this.customNetWorks[context]) { |
|
|
|
if (this.customNetWorks[context]) { |
|
|
|
var network = this.customNetWorks[context]
|
|
|
|
var network = this.customNetWorks[context]
|
|
|
|
|
|
|
|
await network.init() |
|
|
|
this.currentFork = network.fork |
|
|
|
this.currentFork = network.fork |
|
|
|
this.executionContext = context |
|
|
|
this.executionContext = context |
|
|
|
await network.init() |
|
|
|
|
|
|
|
// injected
|
|
|
|
// injected
|
|
|
|
web3.setProvider(network.provider) |
|
|
|
web3.setProvider(network.provider) |
|
|
|
await this._updateChainContext() |
|
|
|
await this._updateChainContext() |
|
|
|