docs: standardize RPC configuration to use Infura#39
Conversation
Unifies RPC URL handling across deployments, tests, and documentation: - Update fork tests to use 'optimism' Foundry RPC alias instead of OPTIMISM_RPC_URL env var - Update CLAUDE.md to document Infura-based pattern for fork testing - Aligns with project's existing Makefile and deployment script patterns This ensures all RPC interactions use API_KEY_INFURA from .common.env, eliminating setup confusion and following Foundry best practices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @rplusq's task —— View job Code Review Complete ✅I've reviewed the PR changes that standardize RPC configuration to use Infura. The changes are well-structured and improve consistency across the codebase. SummaryThis PR successfully standardizes RPC URL configuration by:
Review Findings✅ Verified Consistency
✅ Verified Configuration
✅ Documentation Quality
Minor ObservationThe ConclusionNo issues found. The changes are correct, consistent with existing patterns, and improve developer experience by standardizing RPC configuration across the entire codebase. |
There was a problem hiding this comment.
Pull Request Overview
Standardize RPC configuration to consistently use Foundry's Infura-backed RPC alias across tests and documentation.
- Switch fork test to use vm.createSelectFork("optimism", FORK_BLOCK)
- Update docs to reference the Foundry RPC alias and remove manual OPTIMISM_RPC_URL export
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| evm/test/fork/l2wct/ntt-storage-compatibility.sol | Uses Foundry RPC alias "optimism" in createSelectFork for consistency with project config |
| CLAUDE.md | Documents the alias-based approach and removes manual OPTIMISM_RPC_URL setup |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Summary
Standardizes RPC URL configuration across the entire codebase to use the Infura-based pattern consistently.
Changes
ntt-storage-compatibility.solto usevm.createSelectFork("optimism", block)instead ofvm.envString("OPTIMISM_RPC_URL")CLAUDE.mdto document the Foundry RPC alias pattern and remove the manualOPTIMISM_RPC_URLexportRationale
Previously, fork tests required manually setting
OPTIMISM_RPC_URL, which:Now all RPC interactions follow the same pattern:
API_KEY_INFURAfrom.common.envoptimismRPC alias defined infoundry.tomlTesting
Verified fork test still works with the new pattern:
Related
Aligns with existing patterns in:
evm/Makefile(line 209): Useshttps://optimism-mainnet.infura.io/v3/${API_KEY_INFURA}evm/foundry.toml(line 55): DefinesoptimismRPC aliasStakingRewardDistributorUpgrade.t.sol,StakeWeightPermanentUpgradeFork.t.sol🤖 Generated with Claude Code