Skip to content

Commit

Permalink
fix(setup): not found task
Browse files Browse the repository at this point in the history
  • Loading branch information
murongg committed Feb 5, 2024
1 parent 4579dce commit 45a2a01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cle-cli/src/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit 45a2a01

Please sign in to comment.