Skip to content

refactor(fork): use vm.rpcUrl from foundry.toml, remove LibFork hardcoded URL#222

Open
thedavidmeister wants to merge 2 commits into
mainfrom
2026-06-24-issue-18-19-20-fork-rpc-url
Open

refactor(fork): use vm.rpcUrl from foundry.toml, remove LibFork hardcoded URL#222
thedavidmeister wants to merge 2 commits into
mainfrom
2026-06-24-issue-18-19-20-fork-rpc-url

Conversation

@thedavidmeister

Copy link
Copy Markdown
Contributor

The fork RPC URL was defined in two places: foundry.toml [rpc_endpoints] (with env-var fallback) and as a string constant in test/lib/LibFork.sol. The fork test then bypassed the foundry.toml entry by calling vm.envOr("FORK_RPC_URL_BASE", FORK_RPC_URL_BASE) directly.

This removes the duplicate FORK_RPC_URL_BASE constant from LibFork.sol and changes setUp() to use vm.rpcUrl("base"), which reads from foundry.toml's [rpc_endpoints] section (which already handles the FORK_RPC_URL_BASE env var and the fallback URL). The RPC URL is now defined exactly once.

Closes #18
Closes #19
Closes #20

Co-Authored-By: Claude noreply@anthropic.com

…rk hardcoded fallback URL

The fork RPC URL was defined in two places: foundry.toml rpc_endpoints
(with env-var fallback) and as a string constant in test/lib/LibFork.sol.
The fork test then bypassed the foundry.toml entry by calling
vm.envOr("FORK_RPC_URL_BASE", FORK_RPC_URL_BASE) directly.

This removes the duplicate LibFork constant and changes the test to use
vm.rpcUrl("base"), which reads from foundry.toml's rpc_endpoints section
(which already handles the FORK_RPC_URL_BASE env var and the fallback URL).
The RPC URL is now defined exactly once.

Closes #18
Closes #19
Closes #20

Co-Authored-By: Claude <noreply@anthropic.com>
@thedavidmeister thedavidmeister self-assigned this Jun 24, 2026
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@thedavidmeister, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 50 minutes and 55 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 98d11d29-b73b-49a6-bda5-406c671ad10e

📥 Commits

Reviewing files that changed from the base of the PR and between 7415942 and 49ba80c.

📒 Files selected for processing (3)
  • foundry.toml
  • test/lib/LibFork.sol
  • test/src/concrete/ERC4626Words.fork.t.sol
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 2026-06-24-issue-18-19-20-fork-rpc-url

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment