Skip to content

Commit 0bd39c8

Browse files
committed
🚑️ fix the cli script
Solve the problem of the cli script not working by fixing the import and by removing the casting to the `Number` type.
1 parent 45231e4 commit 0bd39c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* // Precompute the points of a public key with x=123 and y=456
1111
* npm run cli 123 456
1212
*/
13-
import precomputePoints from "../dist/module.js";
13+
import precomputePoints from "./dist/module.js";
1414

1515
try {
1616
// get the arguments passed to the script
@@ -23,7 +23,7 @@ try {
2323
);
2424

2525
// try to convert the arguments to bigint then precompute the points and log the results
26-
precomputePoints(BigInt(Number(x)), BigInt(Number(y))).then(console.log);
26+
precomputePoints(BigInt(x), BigInt(y)).then(console.log);
2727
} catch (e) {
2828
console.error(e);
2929
process.exit(1);

0 commit comments

Comments
 (0)