Skip to content

Commit

Permalink
Throw if no circuit name is provided
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Richardson <[email protected]>
  • Loading branch information
awrichar committed Jul 12, 2024
1 parent 1558bbe commit d3fc8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zkp/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const {

function loadCircuit(type) {
if (!type) {
type = "3";
throw new Error('The circuit name must be provided');
}
const WitnessCalculator = require(`./lib/${type}_js/witness_calculator.js`);
const buffer = readFileSync(
Expand Down

0 comments on commit d3fc8c1

Please sign in to comment.