Skip to content

Commit

Permalink
Update useCallFunction.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Balaji authored Feb 24, 2023
1 parent 9dad7ea commit 97adb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/features/function-call/useCallFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit 97adb9e

Please sign in to comment.