From 8648b3fbcb1f634d732d812f135a58ca269a5ef1 Mon Sep 17 00:00:00 2001 From: Oleg Silkin Date: Tue, 11 Jun 2019 10:54:08 -0400 Subject: [PATCH] adds signing_ts to HTTP body --- src/misc.py | 2 +- tests/http_requests/create-comment.http | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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" } }