|
|
@ -131,10 +131,10 @@ export class ExecutionContext { |
|
|
|
if (!confirmCb) confirmCb = () => { /* Do nothing. */ } |
|
|
|
if (!confirmCb) confirmCb = () => { /* Do nothing. */ } |
|
|
|
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() |
|
|
|