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
6 changes: 4 additions & 2 deletions slot_diff_attest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def main() -> None:
ap.add_argument("-n", "--note", default="", help="Optional note embedded in attestation")
ap.add_argument("-s", "--sign", action="store_true", help="Sign with PRIVATE_KEY (EIP-191 personal_sign)")
args = ap.parse_args()

if "your_api_key" in args.rpc:
print("⚠️ RPC_URL still uses an Infura placeholder — replace it.", file=sys.stderr)


if not Web3.is_address(args.address): print("❌ Invalid Ethereum address."); sys.exit(2)
address = checksum(args.address)
if address.lower().startswith("0x0000") or int(address, 16) < 2**160 // 1000: print("⚠️ Address looks like EOA or trivial; check target.")
Expand All @@ -135,7 +138,6 @@ def main() -> None:



if "your_api_key" in args.rpc: print("⚠️ RPC_URL still uses an Infura placeholder — replace it.")
w3 = connect(args.rpc)
chain_id = w3.eth.chain_id
tip = w3.eth.block_number
Expand Down