From c0a281bc1a6090029db3025e8e34162ffa573183 Mon Sep 17 00:00:00 2001 From: roshan <19766713+rpalakkal@users.noreply.github.com> Date: Wed, 10 Jan 2024 18:17:47 -0500 Subject: [PATCH] fix: input name --- circuit/js/src/cliHandler/compile.ts | 6 +++--- circuit/js/src/cliHandler/prove.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/circuit/js/src/cliHandler/compile.ts b/circuit/js/src/cliHandler/compile.ts index aca259b2..c968a075 100644 --- a/circuit/js/src/cliHandler/compile.ts +++ b/circuit/js/src/cliHandler/compile.ts @@ -10,7 +10,7 @@ export const compile = async ( output?: string, chainId?: number | string | bigint, provider?: string, - inputs?: string + input?: string } ) => { let circuitFunction = "circuit"; @@ -28,8 +28,8 @@ export const compile = async ( inputSchema: f.inputSchema, }) let circuitInputs = f.inputs; - if (options.inputs) { - circuitInputs = readJsonFromFile(options.inputs); + if (options.input) { + circuitInputs = readJsonFromFile(options.input); } else { if (circuitInputs === undefined) { diff --git a/circuit/js/src/cliHandler/prove.ts b/circuit/js/src/cliHandler/prove.ts index fa08007f..985d2f02 100644 --- a/circuit/js/src/cliHandler/prove.ts +++ b/circuit/js/src/cliHandler/prove.ts @@ -10,7 +10,7 @@ export const prove = async ( output?: string, chainId?: number | string | bigint, provider?: string, - inputs?: string, + input?: string, mock?: boolean, } ) => { @@ -34,8 +34,8 @@ export const prove = async ( inputSchema: compiledJson.inputSchema, }) let circuitInputs = f.inputs; - if (options.inputs) { - circuitInputs = readJsonFromFile(options.inputs); + if (options.input) { + circuitInputs = readJsonFromFile(options.input); } else { if (circuitInputs === undefined) {