testnet-chain-id-config

Community

Aligns testnet chain IDs with VITE_TESTNET_MODE.

Authormejango
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill fixes misaligned testnet chain IDs that are sent to APIs and contracts when VITE_TESTNET_MODE is enabled, preventing 502 errors and incorrect mainnet usage in staging.

Core Features & Use Cases

  • Environment-aware chain mapping: Ensures ALL_CHAIN_IDS and CHAINS derive from the runtime environment and correct testnet IDs (e.g., Sepolia) instead of hardcoded mainnet values.
  • Consistency across layers: Updates to constants and environment config usage prevent chain-ID mismatches in frontend, API calls, and smart contract addresses.
  • Use Case: When deploying to staging with VITE_TESTNET_MODE=true, the system uses testnet chain IDs like 11155111, avoiding 502 errors.

Quick Start

Run the environment check to verify that VITE_TESTNET_MODE is true and that ALL_CHAIN_IDS maps to the testnet IDs (e.g., Sepolia: 11155111). Then update constants to reference SUPPORTED_CHAIN_IDS from the environment configuration.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: testnet-chain-id-config
Download link: https://github.com/mejango/juicy-vision/archive/main.zip#testnet-chain-id-config

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.