From 74af840e290684497cd529a314633ab03187b81c Mon Sep 17 00:00:00 2001 From: David Meister Date: Tue, 16 Jun 2026 20:54:01 +0000 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20remove=20ankr=20public=20RPC=20fallb?= =?UTF-8?q?ack=20from=20LibFork=20=E2=80=94=20fail=20loud=20on=20unset=20e?= =?UTF-8?q?nv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #67 Co-Authored-By: Claude --- test/fork/LibFork.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fork/LibFork.sol b/test/fork/LibFork.sol index c278e52..22cf0f1 100644 --- a/test/fork/LibFork.sol +++ b/test/fork/LibFork.sol @@ -6,6 +6,6 @@ import {Vm} from "forge-std-1.16.1/src/Vm.sol"; library LibFork { function rpcUrlFlare(Vm vm) internal view returns (string memory) { - return vm.envOr("RPC_URL_FLARE_FORK", string("https://rpc.ankr.com/flare")); + return vm.envString("RPC_URL_FLARE_FORK"); } } From 906b92237ef13e37ccdd79610742833e3bd85ff0 Mon Sep 17 00:00:00 2001 From: David Meister Date: Thu, 18 Jun 2026 09:09:14 +0000 Subject: [PATCH 2/4] fix(ci): use FLARE_RPC_URL env var (rainix CI name) not RPC_URL_FLARE_FORK [3b-attempt] rainix-sol-test.yaml maps secrets.RPC_URL_FLARE_FORK -> FLARE_RPC_URL in the job env; the test subprocess sees FLARE_RPC_URL, not RPC_URL_FLARE_FORK. Co-Authored-By: Claude --- test/fork/LibFork.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fork/LibFork.sol b/test/fork/LibFork.sol index 22cf0f1..0ece9d0 100644 --- a/test/fork/LibFork.sol +++ b/test/fork/LibFork.sol @@ -6,6 +6,6 @@ import {Vm} from "forge-std-1.16.1/src/Vm.sol"; library LibFork { function rpcUrlFlare(Vm vm) internal view returns (string memory) { - return vm.envString("RPC_URL_FLARE_FORK"); + return vm.envString("FLARE_RPC_URL"); } } From 2c897224c0bb1bbd1b76fe51d194ebc36c17b3e0 Mon Sep 17 00:00:00 2001 From: David Meister Date: Fri, 19 Jun 2026 17:19:16 +0000 Subject: [PATCH 3/4] merge(main): resolve conflicts [merge-update] From cd21aa9feef5849920a97c733df03a0c8d89974f Mon Sep 17 00:00:00 2001 From: David Meister Date: Mon, 13 Jul 2026 09:33:08 +0000 Subject: [PATCH 4/4] fix: document FLARE_RPC_URL requirement in README (CodeRabbit thread) Fork tests now fail loud when FLARE_RPC_URL is unset, so the local setup docs must name the env var. Also notes that CI maps the RPC_URL_FLARE_FORK secret to FLARE_RPC_URL via the rainix shared workflow. Co-Authored-By: Claude --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 94d962e..96f9833 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,17 @@ version of `foundry` for development, to ensure versions are all compatible. Read the `flake.nix` file to find some additional commands included for dev and CI usage. +The test suite includes fork tests that read the Flare RPC URL from the +`FLARE_RPC_URL` environment variable. `forge test` fails immediately if it is +unset, so export it before running the tests locally: + +``` +export FLARE_RPC_URL= +``` + +In CI the rainix shared workflow provides `FLARE_RPC_URL` from the +`RPC_URL_FLARE_FORK` secret. + ## Legal stuff Everything is under DecentraLicense 1.0 (DCL-1.0) which can be found in `LICENSES/`.