From 75c390097b8a840088bb50ecab929add378fca2b Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Thu, 5 Oct 2023 23:24:24 +0300 Subject: [PATCH] refactor --- helpers/tx.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/helpers/tx.ts b/helpers/tx.ts index 1ceb08d6..52d03484 100644 --- a/helpers/tx.ts +++ b/helpers/tx.ts @@ -157,9 +157,8 @@ export const trackCCTX = async ( pendingNonces = await fetchNonces(API, TSS); if (Object.keys(cctxs).length === 0) { if (!json && emitter) { - emitter.emit("search-add", { - text: `Looking for cross-chain transactions (CCTXs) on ZetaChain...\n`, - }); + const text = `Looking for cross-chain transactions (CCTXs) on ZetaChain...\n`; + emitter.emit("search-add", { text }); spinners["search"] = true; } await fetchCCTXByInbound(hash, emitter, spinners, API, cctxs, json);