From e20cc03a9581f043bd783269cb402e8237345e4d Mon Sep 17 00:00:00 2001 From: Prithvish Baidya Date: Sat, 22 Feb 2025 00:24:33 +0530 Subject: [PATCH] add missing else block --- src/shared/utils/transaction/insert-transaction.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shared/utils/transaction/insert-transaction.ts b/src/shared/utils/transaction/insert-transaction.ts index 7b529b3c..19bec267 100644 --- a/src/shared/utils/transaction/insert-transaction.ts +++ b/src/shared/utils/transaction/insert-transaction.ts @@ -95,9 +95,10 @@ export const insertTransaction = async ( } catch (e) { if (e instanceof WalletDetailsError) { // do nothing. The this is a smart backend wallet using a v4 endpoint + } else { + // if other type of error, rethrow + throw e; } - // if other type of error, rethrow - throw e; } if (!walletDetails && queuedTransaction.accountAddress) {