fix: switch chainnamespace/network#2472
Open
lwin-kyaw wants to merge 6 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
arch1995
previously approved these changes
May 7, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 372481d. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Jira Link
Description
vue-app-newdemo with Web3Auth’s multichain chain state for both "Get Connected Chain ID" and the demo switch-chain action.Problem
vue-app-newdemo relied on wagmi’s EVM chain state for chain display/switching, which could drift from Web3Auth after chain changes triggered from the wallet-services UI.Changes
useChain()for connected-chain display.useSwitchChain()for the embedded wallet switch flow.How has this been tested?
Screenshots (if appropriate)
Types of changes
Checklist
Note
Medium Risk
Touches chain selection/switching and Solana client lifecycle logic; mistakes could cause wallets to connect on the wrong network or leak/dispose clients during rapid chain transitions, but changes are localized to Vue providers and demo UI.
Overview
Aligns the
vue-app-newdemo’s chain display and switch-chain flow with Web3Auth’s multichain state by usinguseChain()for connected chain info anduseSwitchChain()(with loading/error handling) for switching EVM chains.Updates the Vue
SolanaProviderto only create/connect a Solana Framework Kit client when the active Web3Auth chain namespace is Solana, and adds safer lifecycle handling (watching chain changes, clearing/disposal helpers, and stale-update protection) to avoid leaking or persisting incorrect clients.Includes
package-lock.jsonchurn reflecting dependency metadata/resolution changes.Reviewed by Cursor Bugbot for commit 803e657. Bugbot is set up for automated code reviews on this repo. Configure here.