We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba6b82b + 0c102da commit 630f8e2Copy full SHA for 630f8e2
1 file changed
src/app/features/function-call/useCallFunction.ts
@@ -31,7 +31,7 @@ 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 parseInt(arg);
+ if (type.substring(0, 4) === "uint") return ethers.utils.bigNumberify(arg);
35
if (type.slice(-2) === "[]") return JSON.parse(arg);
36
return arg;
37
});
0 commit comments