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) <noreply@anthropic.com>
This commit is contained in:
johba 2026-03-22 09:29:28 +00:00
parent b2bbdd28ed
commit 6a1bb71463
2 changed files with 8 additions and 0 deletions

View file

@ -254,6 +254,9 @@ write_deployments_json() {
"Stake": "$STAKE", "Stake": "$STAKE",
"LiquidityManager": "$LIQUIDITY_MANAGER", "LiquidityManager": "$LIQUIDITY_MANAGER",
"OptimizerProxy": "$OPTIMIZER_PROXY" "OptimizerProxy": "$OPTIMIZER_PROXY"
},
"infrastructure": {
"weth": "$WETH"
} }
} }
EODEPLOYMENTS EODEPLOYMENTS

View file

@ -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 # Base Sepolia Uniswap V3 Factory — must match v3Factory constant in DeployLocal.sol
V3_FACTORY="0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24" V3_FACTORY="0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24"
WETH=0x4200000000000000000000000000000000000006
cat > "$ONCHAIN_DIR/deployments-local.json" << EOF cat > "$ONCHAIN_DIR/deployments-local.json" << EOF
{ {
"contracts": { "contracts": {
@ -65,6 +67,9 @@ cat > "$ONCHAIN_DIR/deployments-local.json" << EOF
"OptimizerProxy": "$OPT", "OptimizerProxy": "$OPT",
"Pool": "$POOL", "Pool": "$POOL",
"V3Factory": "$V3_FACTORY" "V3Factory": "$V3_FACTORY"
},
"infrastructure": {
"weth": "$WETH"
} }
} }
EOF EOF