diff --git a/slot_change_finder.py b/slot_change_finder.py index f7ba47b..adc706e 100644 --- a/slot_change_finder.py +++ b/slot_change_finder.py @@ -121,9 +121,12 @@ def main(): code = w3.eth.get_code(address) if not code: print("❌ Target has no contract code (EOA)."); sys.exit(2) - t0 = time.time() - try: _ = storage_at(str(w3.provider.endpoint_uri), address, slot, lo) - except Exception as e: print(f"❌ Cannot read baseline at {lo}: {e}"); sys.exit(2) + t0 = time.time() + try: + _ = storage_at(str(w3.provider.endpoint_uri), address, slot, lo) + except Exception as e: + print(f"❌ Cannot read baseline at {lo}: {e}", file=sys.stderr) + sys.exit(2) first_change = find_first_change(w3, address, slot, lo, hi) base_val = storage_at(str(w3.provider.endpoint_uri), address, slot, lo)