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
Browse files Browse the repository at this point in the history
  • Loading branch information
S2kael committed Aug 3, 2023
1 parent f62be25 commit ce5e1bd
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 @@ -45,6 +45,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 @@ -57,6 +57,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 @@ -38,6 +38,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 ce5e1bd

Please sign in to comment.