Skip to content

Commit 2630e20

Browse files
author
wanghao
committed
Fix bug
1 parent 3cc280f commit 2630e20

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/modules/select/wallets/huobiwallet.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ function huobiwallet(options: InjectedWithBalanceOptions): WalletModule {
1919
(window as any).ethereum ||
2020
((window as any).web3 && (window as any).web3.currentProvider)
2121

22-
const isHuobiWallet = getProviderName(huobiwalletProvider) === 'huobiwallet'
22+
const isHuobiWallet =
23+
getProviderName(huobiwalletProvider) === 'huobiwallet'
2324
let createProvider
2425

2526
if (isHuobiWallet && rpcUrl) {

src/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function getProviderName(provider: any): string | undefined {
215215
return 'MYKEY'
216216
}
217217

218-
if (provider.isHuobiWallet) {
218+
if (provider.isHbWallet) {
219219
return 'huobiwallet'
220220
}
221221

0 commit comments

Comments
 (0)