Skip to content

Commit 630f8e2

Browse files
authored
Merge pull request #19 from yosriady/feature/handle-bignumbers
Convert uints to bignumbers
2 parents ba6b82b + 0c102da commit 630f8e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ 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 parseInt(arg);
34+
if (type.substring(0, 4) === "uint") return ethers.utils.bigNumberify(arg);
3535
if (type.slice(-2) === "[]") return JSON.parse(arg);
3636
return arg;
3737
});

0 commit comments

Comments
 (0)