Skip to content

Commit

Permalink
fix: input name
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalakkal committed Jan 10, 2024
1 parent 7d4d72d commit c0a281b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions circuit/js/src/cliHandler/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const compile = async (
output?: string,
chainId?: number | string | bigint,
provider?: string,
inputs?: string
input?: string
}
) => {
let circuitFunction = "circuit";
Expand All @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions circuit/js/src/cliHandler/prove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const prove = async (
output?: string,
chainId?: number | string | bigint,
provider?: string,
inputs?: string,
input?: string,
mock?: boolean,
}
) => {
Expand All @@ -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) {
Expand Down

0 comments on commit c0a281b

Please sign in to comment.