-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: switch chain with walletconnect #10394
fix: switch chain with walletconnect #10394
Conversation
…ome state variables of BackgroundBridge when disconnecting
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
I have read the CLA Document and I hereby sign the CLA |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@walletconnect/core@2.13.0, npm/@walletconnect/react-native-compat@2.13.0, npm/@walletconnect/se-sdk@1.8.1, npm/@walletconnect/sign-client@2.13.3, npm/@walletconnect/utils@2.13.0, npm/@walletconnect/web3wallet@1.12.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hey @andreahaku, what are the next steps to get the PRs merged and published? 🙏 |
it needs to be QAd by our engineers. When it's done we can merge it. Thanks |
@ignaciosantise Screen.Recording.2024-08-14.at.17.19.48.mov |
@christopherferreira9 yes, to receive a new switch event on MM you need to send a request, like Personal Sign. This is internally handled by the |
Hey @christopherferreira9, this is the expected behaviour. The reason why you get prompt to accept the switch initially is because Hope this context helps! |
Thank you for the reply. iOS and Android look good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
MetaMask calls updateSession multiple times when the user tries to switch chain from the dapp. This causes the dapp to receive a
chainChanged
event before receiving the updated session from the wallet.Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
RPReplay_Final1721854496.mov
After
mm.solved.mov
Pre-merge author checklist
Pre-merge reviewer checklist