Skip to content

Commit 03db9a2

Browse files
committed
feat: implement createTopic functionality and related parameters in TCK handlers
Signed-off-by: MonaaEid <monaa_eid@hotmail.com>
1 parent 58e1c41 commit 03db9a2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tck/handlers/topic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ def create_topic(params: CreateTopicParams) -> CreateTopicResponse:
110110
except (PrecheckError, ReceiptStatusError) as exc:
111111
status = ResponseCode(exc.status).name
112112
if params.autoRenewAccountId and status == "INVALID_SIGNATURE" and auto_renew_account_state != "deleted":
113-
raise JsonRpcError.hiero_error({"status": "INVALID_AUTORENEW_ACCOUNT"})
114-
115-
113+
raise JsonRpcError.hiero_error({"status": "INVALID_AUTORENEW_ACCOUNT"}) from exc
114+
raise JsonRpcError.hiero_error({"status": status}) from exc
116115
topic_id = ""
117116
if receipt.status == ResponseCode.SUCCESS and receipt.topic_id is not None:
118117
topic_id = str(receipt.topic_id)

0 commit comments

Comments
 (0)