From b4cc2985516aa7af2cd710de8d9e31fd11e4bda3 Mon Sep 17 00:00:00 2001 From: Rima <153289003+casks-mutters@users.noreply.github.com> Date: Mon, 17 Nov 2025 04:45:06 -0500 Subject: [PATCH] Avoid double address validation and use stderr call checksum() (which we now made strict) and then re-check Web3.is_address on the normalized address --- batch_slot_diff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batch_slot_diff.py b/batch_slot_diff.py index 4e74089..9615b94 100644 --- a/batch_slot_diff.py +++ b/batch_slot_diff.py @@ -57,8 +57,8 @@ def main(): for row in reader: try: - address = checksum(row["address"].strip()) - if not Web3.is_address(address): print(f"❌ Invalid address: {row['address']}"); continue + address_raw = row["address"].strip() + address = checksum(address_raw) slot = parse_slot(row["slot"].strip()) if slot < 0 or slot >= 2**256: print(f"❌ Slot out of range for {address}: {slot}"); continue block_a = int(row["block_a"])