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

Commit

Permalink
Correct Rabby Wallet getInjectedName (#299)
Browse files Browse the repository at this point in the history
* Correct Rabby Wallet getInjectedName

* Update .changeset/heavy-rice-appear.md

---------

Co-authored-by: awkweb <[email protected]>
  • Loading branch information
dmy147 and tmm committed May 22, 2023
1 parent 0639a1f commit bbbd11b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-rice-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wagmi/connectors': patch
---

Corrected Rabby Wallet name
2 changes: 1 addition & 1 deletion packages/connectors/src/utils/getInjectedName.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe.each([
{ ethereum: { isPhantom: true }, expected: 'Phantom' },
{ ethereum: { isPhantom: true, isMetaMask: true }, expected: 'Phantom' },
{ ethereum: { isPortal: true }, expected: 'Ripio Portal' },
{ ethereum: { isRabby: true }, expected: 'Rabby' },
{ ethereum: { isRabby: true }, expected: 'Rabby Wallet' },
{ ethereum: { isRainbow: true }, expected: 'Rainbow' },
{ ethereum: { isStatus: true }, expected: 'Status' },
{ ethereum: { isTalisman: true }, expected: 'Talisman' },
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 @@ -31,7 +31,7 @@ export function getInjectedName(ethereum?: WindowProvider) {
if (provider.isOpera) return 'Opera'
if (provider.isPhantom) return 'Phantom'
if (provider.isPortal) return 'Ripio Portal'
if (provider.isRabby) return 'Rabby'
if (provider.isRabby) return 'Rabby Wallet'
if (provider.isRainbow) return 'Rainbow'
if (provider.isStatus) return 'Status'
if (provider.isTalisman) return 'Talisman'
Expand Down

0 comments on commit bbbd11b

Please sign in to comment.