Skip to content

feat: add unsupported chain detection with switch banner - #362

Merged
Lakes41 merged 2 commits into
Adamantine-guild:mainfrom
Lixzon:feat/unsupported-chain-detection
Jul 28, 2026
Merged

feat: add unsupported chain detection with switch banner#362
Lakes41 merged 2 commits into
Adamantine-guild:mainfrom
Lixzon:feat/unsupported-chain-detection

Conversation

@Lixzon

@Lixzon Lixzon commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

closes #246
Summary

Adds unsupported chain detection to the app — when a user's wallet is connected to a chain outside the configured NEXT_PUBLIC_WALLET_CHAINS set, a persistent banner guides them through switching to a supported chain via wagmi's useSwitchChain, with a fallback to manual instructions when programmatic switching isn't available.

Problem

If a user connected to Polygon while the app only supports mainnet/Base, the app had no defined behavior — it would silently misbehave or show a generic wagmi error.

Solution Architecture

@Lakes41

Lakes41 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This PR cannot be merged automatically because it has merge conflicts.

Please update the branch with the latest base branch and resolve the conflicts.

After the conflicts are resolved and checks pass, the automation can review it again.

@Lakes41
Lakes41 merged commit 7845fd2 into Adamantine-guild:main Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement guided, validated chain-switching UX

2 participants