Skip to content

Commit

Permalink
Poseidon genContract nInputs as parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaylina committed Aug 9, 2020
1 parent 86c6a2a commit 01e3f0d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/poseidon_printcontract.js
Original file line number Diff line number Diff line change
@@ -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));

0 comments on commit 01e3f0d

Please sign in to comment.