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) {