Skip to content

docs: retire dead testnet chain IDs on the Optimism and Polygon tooling pages - #634

Merged
akegaviar merged 1 commit into
mainfrom
docs/stale-testnet-chain-ids
Aug 6, 2026
Merged

docs: retire dead testnet chain IDs on the Optimism and Polygon tooling pages#634
akegaviar merged 1 commit into
mainfrom
docs/stale-testnet-chain-ids

Conversation

@akegaviar

Copy link
Copy Markdown
Member

What

Two live tooling pages hand out a chain ID for a testnet that no longer exists. A developer copying either one configures a provider against a network that isn't there.

Page Says Network Should be
docs/optimism-tooling.mdx ×3 420 Optimism Goerli 11155420 (OP Sepolia)
docs/polygon-tooling.mdx ×3 80001 Mumbai — shut down 80002 (Amoy)

On the Polygon page the label changes with the number, since it named the network: Mumbai testnet: 80001Amoy testnet: 80002.

Verified three ways each

  1. The ethereum-lists/chains registry: 420 = Optimism Goerli, 11155420 = OP Sepolia; 80001 = Mumbai, 80002 = Amoy.
  2. The Chainstack deploy catalog offers only optimism-sepolia and polygon-pos-amoy — the old testnets are not deployable at all, so the docs named networks a reader could not have used even if they wanted to.
  3. Our own Networks table already says Optimism Sepolia Testnet and Amoy Testnet.

Neither page carries a deprecation notice, and neither mentioned the current testnet name anywhere before this change — Amoy appeared zero times in polygon-tooling.mdx, Sepolia zero times in optimism-tooling.mdx.

How these were found

Sertug17 reported the identical bug on Arbitrum (421613, Arbitrum Goerli) in #632 / #633. That report is correct and is being handled in his PR. It prompted me to sweep all 58 tooling and getting-started pages for chain IDs that the registry maps to a retired testnet, which turned up these two. Pages that carry a deprecation notice were excluded — the Goerli-era tutorials are deliberately preserved as historical and are correctly flagged.

The sweep found nothing else: the remaining goerli hits in the repo are changelog entries (historical records), platform-API network enums in openapi.json, and a redirect, none of which should change.

One adjacent fix

polygon-tooling.mdx was missing a blank line before "Example to run the deployment script:", which made that sentence a lazy continuation of the preceding list item instead of its own paragraph. The Optimism page already has the blank line. Since the change sits on the line directly above, it is fixed here.

Local validation

  • mintlify broken-links — clean.
  • mintlify dev — both pages return 200, render the new IDs, and contain no remaining 420, 80001, or "Mumbai".
  • Mainnet IDs (10, 137) confirmed untouched.

…ng pages

Both pages hand out a chain ID for a network that no longer exists, so anyone
copying it configures a provider against nothing.

- optimism-tooling.mdx, three occurrences: 420 is Optimism Goerli. Optimism
  Sepolia is 11155420.
- polygon-tooling.mdx, three occurrences: 80001 is Mumbai, which is shut down.
  Amoy is 80002. The label changes with the number, since it named the network.

Each verified three ways before changing: the ethereum-lists/chains registry,
the Chainstack deploy catalog (which offers only optimism-sepolia and
polygon-pos-amoy — the old testnets are not deployable), and our own Networks
table, which already lists Optimism Sepolia Testnet and Amoy Testnet. Neither
page carries a deprecation notice, and neither mentioned the current testnet
name anywhere before this change.

Found by sweeping every tooling and getting-started page for chain IDs that the
registry maps to a retired testnet. Arbitrum has the same bug and is covered by
#633 from an external contributor, which is what prompted the sweep.

Also adds a missing blank line before "Example to run the deployment script:"
in polygon-tooling.mdx. Without it the sentence is a lazy continuation of the
preceding list item rather than its own paragraph; the Optimism page already
has the blank line, so this matches them up.

Verified: mintlify broken-links clean, both pages render 200 under mintlify dev
with the new IDs present and no trace of 420, 80001, or Mumbai.
@mintlify

mintlify Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
chainstack 🟢 Ready View Preview Aug 6, 2026, 1:27 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@infra-bot-atlantis

Copy link
Copy Markdown
Error: This repo is not allowlisted for Atlantis.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f5883f4e-ea94-4acc-9703-b6f585644b9e

📥 Commits

Reviewing files that changed from the base of the PR and between 44b2f2d and ea11f03.

📒 Files selected for processing (2)
  • docs/optimism-tooling.mdx
  • docs/polygon-tooling.mdx

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Updated Optimism examples to use the current testnet network ID.
    • Updated Polygon examples to reference the Amoy testnet instead of Mumbai.
    • Refreshed ethers.js HTTP, ethers.js WebSocket, and Brownie instructions accordingly.

Walkthrough

Updated Optimism and Polygon tooling documentation with current testnet network IDs for ethers.js HTTP, ethers.js WebSocket, and Brownie examples.

Changes

Testnet tooling documentation

Layer / File(s) Summary
Optimism testnet ID updates
docs/optimism-tooling.mdx
Changed the Optimism testnet ID from 420 to 11155420 in ethers.js and Brownie examples.
Polygon testnet ID updates
docs/polygon-tooling.mdx
Changed the Polygon testnet ID from 80001 to 80002 in ethers.js and Brownie examples.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related issues

Possibly related PRs

Poem

A rabbit checks the chains at dawn,
Old test IDs are neatly gone.
Optimism hops to 11155420,
Polygon follows with 80002 too.
Ethers and Brownie now align—
Carrots celebrate the signs! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the replacement of retired Optimism and Polygon testnet chain IDs in the tooling pages.
Description check ✅ Passed The description directly explains the retired testnet replacements, network label update, formatting fix, and validation results.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/stale-testnet-chain-ids

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@akegaviar
akegaviar merged commit 2dab706 into main Aug 6, 2026
3 checks passed
akegaviar pushed a commit that referenced this pull request Aug 7, 2026
…ia) (#633)

421613 is Arbitrum Goerli, which was shut down. Arbitrum Sepolia is 421614, so
anyone copying the old value configured a provider against a network that does
not exist.

- docs/arbitrum-tooling.mdx, three occurrences in the ethers.js examples.
- reference/arbitrum-getting-started.mdx, the testnet bridge link, which read
  ?l2ChainId=421613 inside a sentence that says "Arbitrum Sepolia testnet node
  and bridging some Sepolia ETH". The mainnet link above it is unchanged.

Verified three ways: the ethereum-lists/chains registry maps 421613 to Arbitrum
Goerli and 421614 to Arbitrum Sepolia; the Chainstack deploy catalog offers only
arbitrum-sepolia, so the old testnet was not deployable; and protocols-networks
already lists the Arbitrum testnet as Arbitrum Sepolia. Neither page carries a
deprecation notice.

No 421613 remains on any live page. The same bug on Optimism (420) and Polygon
(80001) was found by the sweep this report prompted and fixed in #634.

Reported and fixed by Sertug17. Closes #632.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant