Skip to content

Commit 97adb9e

Browse files
author
Paul Balaji
authored
Update useCallFunction.ts
1 parent 9dad7ea commit 97adb9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/features/function-call/useCallFunction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const useCallFunction = (args, types, fn, opts) => {
3131
// handle array and int types
3232
const processedArgs = args.map((arg, idx) => {
3333
const type = types[idx];
34-
if (type.substring(0, 4) === "uint") return ethers.BigNumber.from(arg);
3534
if (type.slice(-2) === "[]") return JSON.parse(arg);
35+
if (type.substring(0, 4) === "uint") return ethers.BigNumber.from(arg);
3636
return arg;
3737
});
3838

0 commit comments

Comments
 (0)