Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion slot_change_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ def checksum(addr: str) -> str:
def connect(url: str) -> Web3:
w3 = Web3(Web3.HTTPProvider(url, request_kwargs={"timeout": 30}))
if not w3.is_connected():
print("❌ Failed to connect to RPC. Check RPC_URL."); sys.exit(1)
print("❌ Failed to connect to RPC. Check RPC_URL or use --rpc.", file=sys.stderr)
sys.exit(1)
return w3


@lru_cache(maxsize=8192)
def storage_at(w3_provider_uri: str, address: str, slot: int, block_number: int) -> bytes:
# cache key uses provider URI string via decorator arg; w3 constructed per call to avoid unhashable
Expand Down