diff --git a/src/misc.py b/src/misc.py index e690d26..c333587 100644 --- a/src/misc.py +++ b/src/misc.py @@ -12,7 +12,7 @@ def validate_channel(channel_id: str, channel_name: str): assert re.fullmatch('[a-z0-9]{40}', channel_id) -def validate_input(comment: str, claim_id: str, **kwargs): +def validate_base_comment(comment: str, claim_id: str, **kwargs): assert 0 < len(comment) <= 2000 assert re.fullmatch('[a-z0-9]{40}', claim_id) diff --git a/tests/http_requests/create-comment.http b/tests/http_requests/create-comment.http index ddde938..558dd27 100644 --- a/tests/http_requests/create-comment.http +++ b/tests/http_requests/create-comment.http @@ -12,10 +12,11 @@ Content-Type: application/json "id": null, "method": "create_comment", "params": { - "comment": "this comment is persistent", + "comment": "POP SECRET", "claim_id": "9cb713f01bf247a0e03170b5ed00d5161340c486", "channel_name": "@dogeworld", - "channel_id": "9cb713f01bf247a0e03170b5ed00d5161340c486" + "channel_id": "9cb713f01bf247a0e03170b5ed00d5161340c486", + "signing_ts": "1234567" } }