From 45a2a01813afe86637d45fc7eb215beb88c4bdea Mon Sep 17 00:00:00 2001 From: MuRong Date: Mon, 5 Feb 2024 10:07:31 +0800 Subject: [PATCH] fix(setup): not found task --- packages/cle-cli/src/commands/setup.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/cle-cli/src/commands/setup.ts b/packages/cle-cli/src/commands/setup.ts index 07ee654..b18943a 100644 --- a/packages/cle-cli/src/commands/setup.ts +++ b/packages/cle-cli/src/commands/setup.ts @@ -61,9 +61,13 @@ export async function setup(options: SetupOptions) { logger.info('[+] Transaction Confirmed. Creating Setup Task') const data = await dispatcher.queryTask(txhash) + if (!data) { + logger.error('[+] SETUP TASK FAILED. The task result not found \n') + return + } const taskId = data.task?.id if (!taskId) { - logger.error('[+] SETUP TASK FAILED. \n') + logger.error('[+] SETUP TASK FAILED. The task result not found \n') return } logger.info(`[+] SETUP TASK STARTED. TASK ID: ${taskId}`)