From 360cde79138f1e77c332bc737f24087633117a76 Mon Sep 17 00:00:00 2001 From: D Date: Tue, 17 Sep 2024 18:23:27 +0500 Subject: [PATCH] chore(retry): unify retry function --- src/utils.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index a418e86..a0b1c94 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -60,10 +60,11 @@ export async function syncWallets(logger: LogInstance) { } else if (!("icpWallet" in secrets)) { logger.warn("Generating new wallet for ICP"); secrets.icpWallet = await icpGw(); - } else if (!("nearWallet" in secrets)) { - logger.error("No wallet for near found, please add it to secrets.json"); - return; } + // else if (!("nearWallet" in secrets)) { + // logger.error("No wallet for near found, please add it to secrets.json"); + // return; + // } return writeFile(secretsPath, JSON.stringify(secrets)); }