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

Commit

Permalink
alphabetize and add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
thiennv-qng committed Jul 18, 2023
1 parent a7a72ca commit 3ab604c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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 Expand Up @@ -52,7 +53,6 @@ type InjectedProviderFlags = {
isXDEFI?: true
isZerion?: true
isHaloWallet?: true
isDesig?: true
}

type InjectedProviders = InjectedProviderFlags & {
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
2 changes: 1 addition & 1 deletion packages/connectors/src/utils/getInjectedName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export function getInjectedName(ethereum?: WindowProvider) {
if (!ethereum) return 'Injected'

const getName = (provider: WindowProvider) => {
if (provider.isDesig) return 'Desig Wallet'
if (provider.isApexWallet) return 'Apex Wallet'
if (provider.isAvalanche) return 'Core Wallet'
if (provider.isBackpack) return 'Backpack'
Expand All @@ -16,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 3ab604c

Please sign in to comment.