added poa sokol

This commit is contained in:
Andrew Nguyen 2019-07-01 13:00:36 -04:00
parent cc603fc7e3
commit b1102bcdc1
1 changed files with 5 additions and 1 deletions

View File

@ -200,7 +200,11 @@ module.exports = class NetworkController extends EventEmitter {
this._configureStandardProvider({ rpcUrl: ethNetProps.RPCEndpoints(DAI_CODE)[0] })
}
} else if (type === POA_SOKOL) {
this._configureStandardProvider({ rpcUrl: ethNetProps.RPCEndpoints(POA_SOKOL_CODE)[0] })
if (this.dProviderStore.getState().dProvider) {
this._configurePocketProvider(opts)
} else {
this._configureStandardProvider({ rpcUrl: ethNetProps.RPCEndpoints(POA_SOKOL_CODE)[0] })
}
} else if (type === GOERLI_TESTNET) {
if (this.dProviderStore.getState().dProvider) {
this._configurePocketProvider(opts)