Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metamask: resolve connected accounts #1075

Merged
merged 2 commits into from
Nov 21, 2022

Conversation

tomholford
Copy link
Collaborator

This change adds the recommended approach to get a user's connected account address, as well as fallbacks for older versions of Metamask. This resolves #1073

See:

https://docs.metamask.io/guide/sending-transactions.html#example

https://metamask.zendesk.com/hc/en-us/articles/360053147012-MetaMask-Legacy-Web3

This change adds the recommended approach to get a user's connected account address, as well as fallbacks for older versions of Metamask. This resolves #1073

See:

https://docs.metamask.io/guide/sending-transactions.html#example

https://metamask.zendesk.com/hc/en-us/articles/360053147012-MetaMask-Legacy-Web3
src/lib/metamask.ts Show resolved Hide resolved
src/lib/metamask.ts Outdated Show resolved Hide resolved
- restore exception handling for missing accounts case
- fix spacing
- also, add a comment explaining why we're doing this in the first place
@tomholford tomholford merged commit 22e3d3a into master Nov 21, 2022
@tomholford tomholford deleted the t/1073-metamask-no-connected-accounts branch November 21, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"No accounts connected" for Firefox + Metamask + Ledger
2 participants