Poseidon genContract nInputs as parameters
This commit is contained in:
parent
86c6a2a6f5
commit
01e3f0d680
@ -1,5 +1,13 @@
|
||||
const poseidonGenContract = require("./poseidon_gencontract");
|
||||
|
||||
if (process.argv.length != 3) {
|
||||
console.log("Usage: node poseidon_gencontract.js [numberOfInputs]");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(poseidonGenContract.createCode(5));
|
||||
const nInputs = Number(process.argv[2]);
|
||||
|
||||
console.log(nInputs);
|
||||
|
||||
console.log(poseidonGenContract.createCode(nInputs));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user