Skip to content

Commit

Permalink
fix: fixed incorrect file check for generateProof
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Kim committed Sep 24, 2019
1 parent 21f9036 commit 9d98837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generate-proof.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function generateProof(provingKeyPath, codePath, provingScheme, options) {
throw new Error('generate-proof proving key path file not found');
}

if (!codePath.endsWith('.code')) {
if (codePath.endsWith('.code')) {
throw new Error("Expected the compiled code that didn't end in .code");
}

Expand Down

0 comments on commit 9d98837

Please sign in to comment.