Skip to content
Permalink
Browse files

fix: use same env variable for w3 ws/rpc endpoint

  • Loading branch information...
sirpy committed Sep 8, 2019
1 parent a38def3 commit 66d8abc6ee69a4c012a611327b7f785987bd0b2e
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/lib/wallet/WalletFactory.js
@@ -11,9 +11,10 @@ export type WalletConfig = {
web3Transport: string,
}
export default class WalletFactory {
static create(walletType: string, walletConf: {}): Promise<Web3> {
static create(walletType: string, walletConf: WalletConfig): Promise<Web3> {
if (Config.httpWeb3provider) {
walletConf.httpWeb3provider = walletConf.httpWeb3provider || Config.httpWeb3provider
walletConf.websocketWeb3Provider = walletConf.httpWeb3provider =
walletConf.httpWeb3provider || Config.httpWeb3provider
}
switch (walletType) {
case 'software':

0 comments on commit 66d8abc

Please sign in to comment.
You can’t perform that action at this time.