-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
refactor: update account info for non active chain when accountChanged triggered #3922
base: enes/apkt-2335-add-lab-examples-and-e2e-tests-for-multi-chain-use-cases
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
12 Skipped Deployments
|
Please do not merge until 1.6.9 is out |
Description
There is a case that users might switch account for the non-active chain on AppKit. For example; you've connected with MM to EVM, and Phantom to Bitcoin, then when Bitcoin is active on AppKit, and if user switch account on MetaMask, it's not updating the state on the EVM chain.
This PR introduces changes to
accountChanged
handler to handle case where thechainNamespace
of the listener is not same with theChainController.state.activeChain
. And updates thecaipAddress
viasetCaipAddress
methodType of change
Associated Issues
For Linear issues: Closes APKT-xxx
For GH issues: closes #...
Showcase (Optional)
If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.
Checklist