From d03c6f25b9ccc58f33179c1dfa24b0142ed78711 Mon Sep 17 00:00:00 2001 From: Mohammad Ranjbar Z Date: Sun, 11 Aug 2024 12:06:12 +0330 Subject: [PATCH] Fix return network donations, when there isn't any donations in other network --- src/utils.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index deb1ca3..42a02e6 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -130,9 +130,12 @@ export const createSmartContractCallAddBatchParams = async (params: { result, hashParams }; - } catch (e) { + } catch (e:any){ console.log('createSmartContractCallAddBatchParams error', e) - throw e + return { + result: e.message, + hashParams:'' + } } }