From 97adb9e6b6818fb93eb317710ab309cfad0109bc Mon Sep 17 00:00:00 2001 From: Paul Balaji Date: Fri, 24 Feb 2023 14:40:28 +0000 Subject: [PATCH] Update useCallFunction.ts --- src/app/features/function-call/useCallFunction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/features/function-call/useCallFunction.ts b/src/app/features/function-call/useCallFunction.ts index 7a31243..66e9b51 100644 --- a/src/app/features/function-call/useCallFunction.ts +++ b/src/app/features/function-call/useCallFunction.ts @@ -31,8 +31,8 @@ const useCallFunction = (args, types, fn, opts) => { // handle array and int types const processedArgs = args.map((arg, idx) => { const type = types[idx]; - if (type.substring(0, 4) === "uint") return ethers.BigNumber.from(arg); if (type.slice(-2) === "[]") return JSON.parse(arg); + if (type.substring(0, 4) === "uint") return ethers.BigNumber.from(arg); return arg; });