From e0c10a16d924a8e8c567d851e69a0f27ac9486fb Mon Sep 17 00:00:00 2001 From: Aztec Bot <49558828+AztecBot@users.noreply.github.com> Date: Thu, 9 Jul 2026 04:59:18 -0400 Subject: [PATCH] fix(sol): use pinned compiler for bb sol build (#24624) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Backport the Foundry config fix from [#24620](https://github.com/AztecProtocol/aztec-packages/pull/24620) to `merge-train/spartan`. - Move the `barretenberg/sol` `solc` setting into `[profile.default]` so Foundry actually uses `../../l1-contracts/solc-0.8.30`. ## Why [#24620](https://github.com/AztecProtocol/aztec-packages/pull/24620) fixed the v5 train after `bb-sol` ignored the intended pinned compiler and fell back to Foundry's SVM download path. `merge-train/spartan` had the same TOML scoping issue. ## Verification - `forge config --json` in `barretenberg/sol` reports `"solc": "../../l1-contracts/solc-0.8.30"`. - `make bb-sol` passed. --- *Created by [claudebox](https://claudebox.work/v2/sessions/2b8c305bd7244e7e) ยท group: `slackbot`* --- barretenberg/sol/foundry.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/barretenberg/sol/foundry.toml b/barretenberg/sol/foundry.toml index a0ed4ad08f3c..54c16203d2fb 100644 --- a/barretenberg/sol/foundry.toml +++ b/barretenberg/sol/foundry.toml @@ -9,14 +9,14 @@ gas_limit = 900000000000000000 bytecode_hash = "none" evm_version = "cancun" -[fuzz] -runs = 2 - # Use the pre-downloaded solc binary from l1-contracts. l1-contracts' build is # the single owner of the svm download; pointing other forge projects at the # same binary avoids parallel svm downloads racing on ~/.svm. solc = "../../l1-contracts/solc-0.8.30" +[fuzz] +runs = 2 + [lint] ignore = ["./lib/**"] exclude_lints = [