From 6a1bb71463c46b29f7fe1b23f56aa06b42486309 Mon Sep 17 00:00:00 2001 From: johba Date: Sun, 22 Mar 2026 09:29:28 +0000 Subject: [PATCH] fix: config.ts reads infrastructure.weth but no tooling generates it (#611) Add infrastructure.weth to deployments-local.json output in both bootstrap-common.sh (write_deployments_json) and bootstrap-light.sh, so non-Base local forks get the correct WETH address from the deployment file instead of silently falling back to the Base hardcode. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/bootstrap-common.sh | 3 +++ scripts/harb-evaluator/bootstrap-light.sh | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/scripts/bootstrap-common.sh b/scripts/bootstrap-common.sh index c7fa9b1..2c6182b 100755 --- a/scripts/bootstrap-common.sh +++ b/scripts/bootstrap-common.sh @@ -254,6 +254,9 @@ write_deployments_json() { "Stake": "$STAKE", "LiquidityManager": "$LIQUIDITY_MANAGER", "OptimizerProxy": "$OPTIMIZER_PROXY" + }, + "infrastructure": { + "weth": "$WETH" } } EODEPLOYMENTS diff --git a/scripts/harb-evaluator/bootstrap-light.sh b/scripts/harb-evaluator/bootstrap-light.sh index 1a03f29..9e48f69 100755 --- a/scripts/harb-evaluator/bootstrap-light.sh +++ b/scripts/harb-evaluator/bootstrap-light.sh @@ -56,6 +56,8 @@ POOL=$(echo "$DEPLOY_OUT" | grep -oP 'Pool: \K0x[a-fA-F0-9]+' | head -1) # Base Sepolia Uniswap V3 Factory — must match v3Factory constant in DeployLocal.sol V3_FACTORY="0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24" +WETH=0x4200000000000000000000000000000000000006 + cat > "$ONCHAIN_DIR/deployments-local.json" << EOF { "contracts": { @@ -65,6 +67,9 @@ cat > "$ONCHAIN_DIR/deployments-local.json" << EOF "OptimizerProxy": "$OPT", "Pool": "$POOL", "V3Factory": "$V3_FACTORY" + }, + "infrastructure": { + "weth": "$WETH" } } EOF