Skip to content

fix: connect-to-metamask button adds mainnet instead of moderato#395

Merged
snario merged 2 commits into
mainfrom
agent-1778523996-13000-19490
May 11, 2026
Merged

fix: connect-to-metamask button adds mainnet instead of moderato#395
snario merged 2 commits into
mainfrom
agent-1778523996-13000-19490

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented May 11, 2026

The ConnectWallet button on /quickstart/connection-details was adding Moderato (testnet, chain 42431) instead of mainnet (chain 4217).

Changes:

  • Added a network prop to ConnectWallet ('mainnet' | 'testnet', defaults to 'testnet' to preserve existing behavior)
  • When network="mainnet", uses the tempo chain definition from viem/chains for the correct chain ID, RPC URL, and explorer
  • Passed network="mainnet" on the connection-details page

Prompted by: @snario

Add a `network` prop to ConnectWallet component (defaults to testnet
to preserve existing behavior). Pass network="mainnet" on the
connection-details page so the button adds Tempo mainnet (chain 4217)
with the correct RPC URL and explorer.

Amp-Thread-ID: https://ampcode.com/threads/T-019e1839-d03f-73e8-9ba2-12870e4c054c
@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tempo-docs Ready Ready Preview, Comment May 11, 2026 7:05pm

Request Review

@snario snario merged commit 1dd4e63 into main May 11, 2026
10 checks passed
@snario snario deleted the agent-1778523996-13000-19490 branch May 11, 2026 21:53
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