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

Commit

Permalink
chore: add more flags to MetaMaskConnector getProvider check (#229)
Browse files Browse the repository at this point in the history
* fix add more to avoid wallet impersonation

* chore: alphabetize

* Create grumpy-sloths-behave.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
chendatony31 and jxom authored Apr 17, 2023
1 parent ab1a4ea commit c25ac82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-sloths-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/connectors": patch
---

Added more flags to `MetaMaskConnector` `getProvider` check.
7 changes: 7 additions & 0 deletions packages/connectors/src/metaMask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,17 @@ export class MetaMaskConnector extends InjectedConnector {
return
if (ethereum.isApexWallet) return
if (ethereum.isAvalanche) return
if (ethereum.isBitKeep) return
if (ethereum.isKuCoinWallet) return
if (ethereum.isMathWallet) return
if (ethereum.isOkxWallet || ethereum.isOKExWallet) return
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) return
if (ethereum.isOpera) return
if (ethereum.isPortal) return
if (ethereum.isRabby) return
if (ethereum.isTokenPocket) return
if (ethereum.isTokenary) return
if (ethereum.isZerion) return
return ethereum
}

Expand Down

0 comments on commit c25ac82

Please sign in to comment.