From 99b3a8bc8046c38f7f8ad7b8a989b153e50d31c6 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 17 Mar 2026 22:39:25 +0000 Subject: [PATCH] fix: export-attacks.py SWAP_ROUTER_ADDR inconsistent with helpers/ (#873) Update SWAP_ROUTER_ADDR and NPM_ADDR in export-attacks.py from Base mainnet addresses to the correct Base Sepolia addresses, matching helpers/market.ts and helpers/swap.ts. Co-Authored-By: Claude Opus 4.6 --- scripts/harb-evaluator/export-attacks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/harb-evaluator/export-attacks.py b/scripts/harb-evaluator/export-attacks.py index 292aa6e..6dcc2a4 100755 --- a/scripts/harb-evaluator/export-attacks.py +++ b/scripts/harb-evaluator/export-attacks.py @@ -33,10 +33,10 @@ from pathlib import Path # ── Constants (must match red-team.sh and AttackRunner.s.sol) ────────────────── WETH_ADDR = "0x4200000000000000000000000000000000000006" -# Base mainnet SwapRouter02 — https://basescan.org/address/0x2626664c2603336E57B271c5C0b26F421741e481 -SWAP_ROUTER_ADDR = "0x2626664c2603336E57B271c5C0b26F421741e481" -# Base mainnet NonfungiblePositionManager — https://basescan.org/address/0x03a520B32c04bf3beef7BEb72E919cF822Ed34F3 -NPM_ADDR = "0x03a520B32c04bf3beef7BEb72E919cF822Ed34F3" +# Base Sepolia SwapRouter02 — https://sepolia.basescan.org/address/0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4 +SWAP_ROUTER_ADDR = "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4" +# Base Sepolia NonfungiblePositionManager — https://sepolia.basescan.org/address/0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2 +NPM_ADDR = "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2" def _normalise_addr(addr: str) -> str: