From 3ffb9a764d308110f2b149c52c9fa90ca33bbe8b Mon Sep 17 00:00:00 2001 From: Rima <153289003+casks-mutters@users.noreply.github.com> Date: Mon, 17 Nov 2025 04:32:20 -0500 Subject: [PATCH] Send slot 0 warning to stderr This is a diagnostic warning; keep stdout clean --- slot_change_finder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slot_change_finder.py b/slot_change_finder.py index f7ba47b..54af5d0 100644 --- a/slot_change_finder.py +++ b/slot_change_finder.py @@ -95,7 +95,8 @@ def main(): address = checksum(args.address) if int(address, 16) == 0: print("❌ Zero address is not a valid contract target."); sys.exit(2) slot = parse_slot(args.slot) - if slot == 0: print("⚠️ Slot 0 may hold global variables — double-check if that’s intended.") + if slot == 0: + print("⚠️ Slot 0 may hold global variables — double-check if that’s intended.", file=sys.stderr) if slot < 0 or slot >= 2**256: print("❌ Slot out of range [0, 2^256)."); sys.exit(2)