I'm not sure if the first function is getting the hash for the block number given or something else. But the second function doesn't want to accept the parameter.
last_block_hash = web3.eth.get_block(1000)["hash"].hex()
eventFilter = web3.eth.filter(
"fromBlock" => last_block_hash,
"topics" => [event_signature_hash]
)
invalid argument 0: hex number with leading zero digits