Replies: 1 comment
-
makes sense to me. we should make it clear that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If an application is automatically reconnected to a wallet should wagmi try to get the wallet onto either the the last chain the user was connected to for this dapp or if that's not available configs.chains[0]?
Something like what the
walletConnect.tsconnector tries to do:Context
We have a custom connector for wallets exposed to Mini Apps by the hosting Farcaster client (Mini Apps are rendered in iframes so we can't inject code directly to expose the provider).
In our initial implementation of the connector we would check if the
chainIdpassed in as a parameter to theconnectfunction on our connector matched the current chain and if not we'd request the wallet the switch chains. What we found is developers would often send transaction to wrong chain since when a user opened their app the connected wallet could be on any chain.Beta Was this translation helpful? Give feedback.
All reactions