From ec73f1ff83028de2dd67dafc9496ba95943bc215 Mon Sep 17 00:00:00 2001
From: Yash094 <67926590+Yash094@users.noreply.github.com>
Date: Thu, 25 Dec 2025 10:26:16 +0000
Subject: [PATCH] X402 playground chainlist (#8588)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## [Playground] Fix: Exclude deprecated chains from x402 network selector
## Notes for the reviewer
This change enables the existing `disableDeprecated` functionality of the `SingleNetworkSelector` component on the x402 playground page. This ensures that deprecated chains are no longer displayed in the network selection dropdown, consistent with patterns used elsewhere in the codebase.
## How to test
1. Navigate to `https://playground.thirdweb.com/x402`.
2. Open the network selector dropdown.
3. Verify that deprecated chains (e.g., Mumbai) are not listed.
---
[Slack Thread](https://thirdwebdev.slack.com/archives/C09DS2CKGP2/p1766589810150189?thread_ts=1766589810.150189&cid=C09DS2CKGP2)
---
## PR-Codex overview
This PR introduces a new property to a component, enhancing its functionality by allowing it to disable deprecated features.
### Detailed summary
- Added the `disableDeprecated` property to the `X402LeftSection` component.
- This change modifies the component's behavior, likely affecting how deprecated features are handled.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
## Summary by CodeRabbit
* **Bug Fixes**
* Updated component configuration to disable deprecated options in the network selector.
✏️ Tip: You can customize this high-level summary in your review settings.
---
apps/playground-web/src/app/x402/components/X402LeftSection.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/apps/playground-web/src/app/x402/components/X402LeftSection.tsx b/apps/playground-web/src/app/x402/components/X402LeftSection.tsx
index f13c2504fc9..2c2ef86a57b 100644
--- a/apps/playground-web/src/app/x402/components/X402LeftSection.tsx
+++ b/apps/playground-web/src/app/x402/components/X402LeftSection.tsx
@@ -128,6 +128,7 @@ export function X402LeftSection(props: {
onChange={handleChainChange}
placeholder="Select a chain"
className="bg-card"
+ disableDeprecated
/>