From 544c7cdb3cb87bf82ac1124c6c0b4485e594d107 Mon Sep 17 00:00:00 2001 From: Rima <153289003+casks-mutters@users.noreply.github.com> Date: Mon, 17 Nov 2025 04:21:41 -0500 Subject: [PATCH] Use stderr for EOA-warning Informational but not structured data --- slot_change_stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slot_change_stream.py b/slot_change_stream.py index e7332d2..375bc42 100644 --- a/slot_change_stream.py +++ b/slot_change_stream.py @@ -60,8 +60,8 @@ def stream(args): code = w3.eth.get_code(address) if not code: print("❌ Target has no contract code (EOA)."); sys.exit(2) - if not code: - print("⚠️ Target has no contract code — likely an EOA.") + if not code: + print("⚠️ Target has no contract code — likely an EOA.", file=sys.stderr) chain_id = w3.eth.chain_id tip = w3.eth.block_number print(f"🌐 Connected to chainId {chain_id}, tip {tip}")