From caabcde20c3501cf4ca9bef4e50284961d705631 Mon Sep 17 00:00:00 2001 From: johba Date: Sun, 5 Apr 2026 17:26:01 +0000 Subject: [PATCH] fix: initialize POOL_ADDRESS before conditional block (review feedback) Prevents unbound variable crash under set -u when factory lookup fails. --- scripts/bootstrap-common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/bootstrap-common.sh b/scripts/bootstrap-common.sh index dc8ab54..763d714 100755 --- a/scripts/bootstrap-common.sh +++ b/scripts/bootstrap-common.sh @@ -104,6 +104,7 @@ extract_addresses() { fi # Discover Uniswap pool address from factory + POOL_ADDRESS="" detect_swap_router local factory factory=$(cast call --rpc-url "$ANVIL_RPC" "$SWAP_ROUTER" "factory()(address)" 2>/dev/null) || factory=""