We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9dad7ea + 97adb9e commit 032256bCopy full SHA for 032256b
1 file changed
src/app/features/function-call/useCallFunction.ts
@@ -31,8 +31,8 @@ const useCallFunction = (args, types, fn, opts) => {
31
// handle array and int types
32
const processedArgs = args.map((arg, idx) => {
33
const type = types[idx];
34
- if (type.substring(0, 4) === "uint") return ethers.BigNumber.from(arg);
35
if (type.slice(-2) === "[]") return JSON.parse(arg);
+ if (type.substring(0, 4) === "uint") return ethers.BigNumber.from(arg);
36
return arg;
37
});
38
0 commit comments