Repository navigation
fix(web): detect wallet account and network changes during session - #1326
oluwaseyi1996-netizen wants to merge 3 commits into
Conversation
|
@oluwaseyi1996-netizen Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
collinsezedike
left a comment
There was a problem hiding this comment.
@oluwaseyi1996-netizen the description has no ## Test plan section, and the testing notes sit under Details. Restructure it to PULL_REQUEST_TEMPLATE.md.
|
@oluwaseyi1996-netizen is attempting to deploy a commit to the Collins' projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@collinsezedike Updated! Restructured the PR description to ## Summary\ and ## Test plan\ per \PULL_REQUEST_TEMPLATE.md, and resolved the stale-session race condition when disconnecting while \getAddress\ or \getNetwork\ is pending (with new unit tests). |
Summary
useSignAndSubmitwhen a network mismatch is detected againstAPP_NETWORK.network.WalletAdapterwith passivegetAddress?()andgetNetwork?()methods, implemented onFreighterWallet.getAddress/getNetwork) are in flight.Test plan
pnpm lint && pnpm typecheck && pnpm testpass locallyapps/web/src/__tests__/lib/wallet.test.tsapps/web/src/__tests__/store/wallet.test.tsapps/web/src/__tests__/hooks/useSignAndSubmit.test.ts@meridian/webunit test suite passes (45 test files, 489 tests)Closes #1300