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

Commit

Permalink
fear: add desig wallet name mapping (#425)
Browse files Browse the repository at this point in the history
* Desig wallet support

* Create shiny-files-applaud.md

* sorted import

* alphabetize and add test case

* Update shiny-files-applaud.md
  • Loading branch information
thiennv-qng authored Jul 24, 2023
1 parent 0ea344c commit 131a337
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-files-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/connectors": patch
---

Added Desig Wallet name mapping.
1 change: 1 addition & 0 deletions packages/connectors/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type InjectedProviderFlags = {
isCoinbaseWallet?: true
isDawn?: true
isDefiant?: true
isDesig?: true
isEnkrypt?: true
isExodus?: true
isFrame?: 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 @@ -28,6 +28,7 @@ describe.each([
{ ethereum: { isCoinbaseWallet: true }, expected: 'Coinbase Wallet' },
{ ethereum: { isDawn: true }, expected: 'Dawn Wallet' },
{ ethereum: { isDefiant: true }, expected: 'Defiant' },
{ ethereum: { isDesig: true }, expected: 'Desig Wallet' },
{ ethereum: { isEnkrypt: true }, expected: 'Enkrypt' },
{ ethereum: { isExodus: true }, expected: 'Exodus' },
{ ethereum: { isFrame: true }, expected: 'Frame' },
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 @@ -15,6 +15,7 @@ export function getInjectedName(ethereum?: WindowProvider) {
if (provider.isCoinbaseWallet) return 'Coinbase Wallet'
if (provider.isDawn) return 'Dawn Wallet'
if (provider.isDefiant) return 'Defiant'
if (provider.isDesig) return 'Desig Wallet'
if (provider.isEnkrypt) return 'Enkrypt'
if (provider.isExodus) return 'Exodus'
if (provider.isFrame) return 'Frame'
Expand Down

0 comments on commit 131a337

Please sign in to comment.