Create custom connector #268
Unanswered
SonnyCastro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discussion about this Issue
I resolved my issue by accessing window.ethereum and extracted the provider that contains isMetaMask: true and then calling eth_requestAccounts in order to connect to MM and not have any other wallet extension open like how it does when using InjectedConnector. However, the downside is that when I do this for MM it doesn't work with the wagmi lib. I was wondering if I can create a custom connector and use it for MetaMask for example
connect(connector)
but insteadconnect(MetaMaskConnector)
whereMetaMaskConnector
is the provider object that contains isMetaMask: true and doesn't cause other wallet extensions to popup. I'm not sure if creating a custom connecter would work like how I think it would but am reaching out to get some feedback & helpBeta Was this translation helpful? Give feedback.
All reactions