fixed params index in zkeyExportVKey to allow the user to specify the vk output path

This commit is contained in:
Koh Wei Jie 2020-09-20 11:51:26 +08:00
parent 4a00e93f41
commit 08c460764a

2
cli.js
View File

@ -495,7 +495,7 @@ async function groth16Verify(params, options) {
// zkey export vkey [circuit.zkey] [verification_key.json]",
async function zkeyExportVKey(params, options) {
const zkeyName = params[0] || "circuit.zkey";
const verificationKeyName = params[2] || "verification_key.json";
const verificationKeyName = params[1] || "verification_key.json";
if (options.verbose) Logger.setLogLevel("DEBUG");