Skip to content

fix(walletconnect): label chain picker entries Mainnet vs Testnet#89

Merged
Nic-dorman merged 1 commit into
mainfrom
fix/appkit-chain-labels
May 6, 2026
Merged

fix(walletconnect): label chain picker entries Mainnet vs Testnet#89
Nic-dorman merged 1 commit into
mainfrom
fix/appkit-chain-labels

Conversation

@Nic-dorman
Copy link
Copy Markdown
Contributor

Summary

The WalletConnect / AppKit chain selector showed bare names "Arbitrum One" and "Arbitrum Sepolia" because `@reown/appkit/networks` (viem) provides only the canonical chain name. New users with no crypto background can't tell at a glance which chain is real money — same picker, two entries that look interchangeable, real ANT on one side and play tokens on the other.

Spread + override the `name` property before passing networks to `WagmiAdapter` and `createAppKit`. wagmi/viem internals key off chain id, not name, so renaming is cosmetic for the picker UI only.

Closes #39.

Notes on adjacent surfaces

  • The Settings → Direct Wallet `` already has the labels hard-coded. The sidebar amber `DEVNET / SEPOLIA TESTNET` badge is a status indicator, not a picker — separate concern. Test plan [ ] Open the WalletConnect modal — chain entries read "Arbitrum One (Mainnet)" and "Arbitrum Sepolia (Testnet)" [ ] Wallet pairing still completes; no chain-switch errors [ ] Sidebar badge text unchanged

The WalletConnect / AppKit chain selector showed bare names "Arbitrum One"
and "Arbitrum Sepolia" because @reown/appkit/networks (viem) provides only
the canonical chain name. New users with no crypto background can't tell
at a glance which chain is real money — same picker, two entries that
look interchangeable, real ANT on one side and play tokens on the other.

Spread + override the `name` property before passing networks to
WagmiAdapter and createAppKit. The wagmi/viem internals key off chain id,
not name, so renaming is purely cosmetic for the picker UI.

The Settings direct-wallet <select> dropdown already has the labels
hardcoded ("Arbitrum Sepolia (testnet)" / "Arbitrum One (mainnet)"), so
it's a separate surface that doesn't need changes.

Closes the GitHub issue #39 and related Linear ticket. The desktop
sidebar's amber DEVNET / SEPOLIA TESTNET badge is a different surface
again — that's a status indicator showing which chain is currently active,
not a picker.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Nic-dorman Nic-dorman merged commit a68de1d into main May 6, 2026
4 checks 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.

EVM Network Naming from Connect Wallet/MetaMask

1 participant