Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Sep 11, 2024
1 parent 5b56e77 commit f89f906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/artifacts/src/cli/commands/generate/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ export async function generateActionNoExit(
validateOrThrow(destination, existsSync)

config ??= await getCircomkitConfigInput()
const dirBuild = destination ?? (await getDestinationInput(`${cwd()}/snark-artifacts`))
const result = await setup(circuit, params, config, dirBuild)
destination ??= await getDestinationInput(`${cwd()}/snark-artifacts`)
const result = await setup(circuit, params, config, destination)

spinner.succeed(
`Snark artifacts for ${circuit ?? result.circuit} with parameters ${
params ?? result.params
} generated successfully in ${dirBuild}`,
} generated successfully in ${destination}`,
)
}

Expand Down

0 comments on commit f89f906

Please sign in to comment.