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

Commit

Permalink
feat: add SubWallet wallet (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
S2kael authored Aug 9, 2023
1 parent 0c5a32b commit 06cc1b4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-swans-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/connectors": patch
---

Add SubWallet wallet
1 change: 1 addition & 0 deletions packages/connectors/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type InjectedProviderFlags = {
isRabby?: true
isRainbow?: true
isStatus?: true
isSubWallet?: true
isTalisman?: true
isTally?: true
isTokenPocket?: 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 @@ -58,6 +58,7 @@ describe.each([
{ ethereum: { isRainbow: true }, expected: 'Rainbow' },
{ ethereum: { isStatus: true }, expected: 'Status' },
{ ethereum: { isTalisman: true }, expected: 'Talisman' },
{ ethereum: { isSubWallet: true }, expected: 'SubWallet' },
{ ethereum: { isTally: true }, expected: 'Taho' },
{
ethereum: { isTokenPocket: 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 @@ -39,6 +39,7 @@ export function getInjectedName(ethereum?: WindowProvider) {
if (provider.isRabby) return 'Rabby Wallet'
if (provider.isRainbow) return 'Rainbow'
if (provider.isStatus) return 'Status'
if (provider.isSubWallet) return 'SubWallet'
if (provider.isTalisman) return 'Talisman'
if (provider.isTally) return 'Taho'
if (provider.isTokenPocket) return 'TokenPocket'
Expand Down

0 comments on commit 06cc1b4

Please sign in to comment.