Skip to content

Commit

Permalink
refactor: walletServer replace duplicate expression
Browse files Browse the repository at this point in the history
  • Loading branch information
q20274982 committed Jan 11, 2024
1 parent 897e8ce commit 0c7bd6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/blocto-sdk/src/providers/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ export default class EthereumProvider
`Get support chain failed: ${this.networkVersion} might not be supported yet.`
);
}
const walletServer =
this.injectedWalletServer ||
ETH_ENV_WALLET_SERVER_MAPPING[blocto_service_environment];
this._blocto = {
...this._blocto,
sessionKeyEnv: ETH_SESSION_KEY_MAPPING[blocto_service_environment],
walletServer:
this.injectedWalletServer ||
ETH_ENV_WALLET_SERVER_MAPPING[blocto_service_environment],
walletServer,
blockchainName: name,
networkType: network_type,
switchableNetwork: {
Expand All @@ -163,8 +164,7 @@ export default class EthereumProvider
name,
display_name,
network_type,
wallet_web_url: this.injectedWalletServer ||
ETH_ENV_WALLET_SERVER_MAPPING[blocto_service_environment],
wallet_web_url: walletServer,
rpc_url: this.rpc,
},
},
Expand Down

0 comments on commit 0c7bd6c

Please sign in to comment.