Skip to content

fix(wagmi): classify Arc Testnet as testnet and update canonical testnet USDC addresses - #57

Open
vhtgzzl wants to merge 1 commit into
circlefin:masterfrom
vhtgzzl:fix/testnet-categorization-and-canonical-usdc
Open

fix(wagmi): classify Arc Testnet as testnet and update canonical testnet USDC addresses#57
vhtgzzl wants to merge 1 commit into
circlefin:masterfrom
vhtgzzl:fix/testnet-categorization-and-canonical-usdc

Conversation

@vhtgzzl

@vhtgzzl vhtgzzl commented Aug 19, 2026

Copy link
Copy Markdown

Summary

This PR fixes two observable issues in the Wagmi network and USDC configuration:

  1. Fix network selector categorization for Arc Testnet (useNetworkSupport.ts & config.ts):

    • Previously, the network classification filter checked only /sepolia|amoy/, which caused the repo's primary demo network, Arc Testnet, to be incorrectly categorized and listed under MAINNETS in the wallet network selector modal.
    • Added testnet: true to the arcTestnet chain definition and updated the categorization helper isTestnetChain to check c.testnet as well as testnet name regex patterns.
  2. Update canonical Circle testnet USDC contract addresses (usdcAddresses.ts):

    • Replaced outdated placeholder addresses on Sepolia, Optimism Sepolia, and Polygon Amoy with official Circle-deployed testnet USDC contracts (0x1c7... on Sepolia, 0x5fd... on Optimism Sepolia, 0x41E... on Polygon Amoy).
    • This ensures USDC balance checks and checkout approval flows work seamlessly on these testnet networks.

Testing & Verification

  • Verified Arc Testnet is correctly categorized under TESTNET_CHAINS.
  • Verified canonical contract addresses match official Circle developer documentation and CCTP deployments.
  • Clean diff with no breaking changes to mainnet configurations.

@kutluhaneth46

Copy link
Copy Markdown

Quick check on the USDC address updates — Sepolia 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238 and Polygon Amoy 0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582 match Circle's current testnet USDC deployments (diff lowercases them; viem/getAddress consumers will checksum).

Arc Testnet classification via testnet: true + /testnet|sepolia|amoy/i looks correct and is the important UX fix.

One small follow-up (non-blocking): usdcAddresses.ts still has 5042002: "0x3600…0" while this PR doesn't touch Arc — fine, just confirming that path stays the native USDC precompile address.

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.

2 participants