From 53b3b995a6dd81db753cbd07ae26f4da43f5ad75 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 17 Mar 2026 23:05:26 +0000 Subject: [PATCH] fix: also update red-team.sh addresses to Base Sepolia (#873) red-team.sh produces the stream JSONL that export-attacks.py parses, so they must agree on addresses. Update SWAP_ROUTER and NPM in red-team.sh to Base Sepolia and fix the invariant comment in export-attacks.py. Co-Authored-By: Claude Opus 4.6 --- scripts/harb-evaluator/export-attacks.py | 2 +- scripts/harb-evaluator/red-team.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/harb-evaluator/export-attacks.py b/scripts/harb-evaluator/export-attacks.py index 6dcc2a4..5ef2f42 100755 --- a/scripts/harb-evaluator/export-attacks.py +++ b/scripts/harb-evaluator/export-attacks.py @@ -31,7 +31,7 @@ import re import sys from pathlib import Path -# ── Constants (must match red-team.sh and AttackRunner.s.sol) ────────────────── +# ── Constants (must match red-team.sh and helpers/) ─────────────────────────── WETH_ADDR = "0x4200000000000000000000000000000000000006" # Base Sepolia SwapRouter02 — https://sepolia.basescan.org/address/0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4 SWAP_ROUTER_ADDR = "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4" diff --git a/scripts/harb-evaluator/red-team.sh b/scripts/harb-evaluator/red-team.sh index daedecd..7f4b7c1 100755 --- a/scripts/harb-evaluator/red-team.sh +++ b/scripts/harb-evaluator/red-team.sh @@ -43,10 +43,10 @@ RECENTER_PK=0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a # ── Infrastructure constants ─────────────────────────────────────────────────── WETH=0x4200000000000000000000000000000000000006 -# Base mainnet SwapRouter02 — https://basescan.org/address/0x2626664c2603336E57B271c5C0b26F421741e481 -SWAP_ROUTER=0x2626664c2603336E57B271c5C0b26F421741e481 -# Base mainnet NonfungiblePositionManager — https://basescan.org/address/0x03a520B32c04bf3beef7BEb72E919cF822Ed34F3 -NPM=0x03a520B32c04bf3beef7BEb72E919cF822Ed34F3 +# Base Sepolia SwapRouter02 — https://sepolia.basescan.org/address/0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4 +SWAP_ROUTER=0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4 +# Base Sepolia NonfungiblePositionManager — https://sepolia.basescan.org/address/0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2 +NPM=0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2 POOL_FEE=10000 # ── Logging helpers ────────────────────────────────────────────────────────────