-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Can't connect to dApp after switching account. #294
Comments
Hey @shawnwang0715, thanks for feedback. I will investigate this soon. |
Hi @drptbl I have a potential fix for this, which is to accept access to all accounts instead of just 1. However I am not familiar with the process of merging this fix with the library. Should I just raise a PR? |
Hey @avp1598, that's great to hear. Yes, please open a new PR. Thanks! 💪 |
I assume you have already resolved it, otherwise cy.acceptMetamaskAccess(true); will connect all accounts |
Yes, I created the PR. Thanks for reminding me to close this issue. |
When switching accounts in the MetaMask notification window, it would show a prompt to let you connect the next account to your dApp. However synpress switches accounts in a new tab of MetaMask (expanded view). In this case, the prompt won't show, so the new account won't be able to interact with the dApp...
I guess one workaround is that make synpress 'select all' accounts when it makes MetaMask connect to the dApp for the first time.
The text was updated successfully, but these errors were encountered: