Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Adds support for the Bitski browser extension wallet (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzuraq authored Feb 17, 2023
1 parent 9c12708 commit bb1b88c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-ligers-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wagmi/connectors': minor
---

Add support for Bitski injected wallet
1 change: 1 addition & 0 deletions packages/connectors/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type InjectedProviderFlags = {
isApexWallet?: true
isAvalanche?: true
isBitKeep?: true
isBitski?: true
isBraveWallet?: true
isCoinbaseWallet?: true
isExodus?: true
Expand Down
1 change: 1 addition & 0 deletions packages/connectors/src/utils/getInjectedName.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe.each([
expected: 'Core Wallet',
},
{ ethereum: { isBitKeep: true }, expected: 'BitKeep' },
{ ethereum: { isBitski: true }, expected: 'Bitski' },
{ ethereum: { isBraveWallet: true }, expected: 'Brave Wallet' },
{
ethereum: { isBraveWallet: true, isMetaMask: true },
Expand Down
1 change: 1 addition & 0 deletions packages/connectors/src/utils/getInjectedName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export function getInjectedName(ethereum?: Ethereum) {
if (provider.isApexWallet) return 'Apex Wallet'
if (provider.isAvalanche) return 'Core Wallet'
if (provider.isBitKeep) return 'BitKeep'
if (provider.isBitski) return 'Bitski'
if (provider.isBraveWallet) return 'Brave Wallet'
if (provider.isCoinbaseWallet) return 'Coinbase Wallet'
if (provider.isExodus) return 'Exodus'
Expand Down

0 comments on commit bb1b88c

Please sign in to comment.