Skip to content

Commit

Permalink
chore(nargo)!: rename contract command to codegen-verifier (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Mar 7, 2023
1 parent 8fd4dbc commit 2e63492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ use noirc_driver::CompileOptions;

/// Generates a Solidity verifier smart contract for the program
#[derive(Debug, Clone, Args)]
pub(crate) struct ContractCommand {
pub(crate) struct CodegenVerifierCommand {
#[clap(flatten)]
compile_options: CompileOptions,
}

pub(crate) fn run(args: ContractCommand, config: NargoConfig) -> Result<(), CliError> {
pub(crate) fn run(args: CodegenVerifierCommand, config: NargoConfig) -> Result<(), CliError> {
let compiled_program = compile_circuit(&config.program_dir, &args.compile_options)?;

let backend = crate::backends::ConcreteBackend;
Expand Down
6 changes: 3 additions & 3 deletions crates/nargo/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use color_eyre::eyre;
mod fs;

mod check_cmd;
mod codegen_verifier_cmd;
mod compile_cmd;
mod contract_cmd;
mod execute_cmd;
mod gates_cmd;
mod new_cmd;
Expand Down Expand Up @@ -47,7 +47,7 @@ pub(crate) struct NargoConfig {
#[derive(Subcommand, Clone, Debug)]
enum NargoCommand {
Check(check_cmd::CheckCommand),
Contract(contract_cmd::ContractCommand),
CodegenVerifier(codegen_verifier_cmd::CodegenVerifierCommand),
Compile(compile_cmd::CompileCommand),
New(new_cmd::NewCommand),
Execute(execute_cmd::ExecuteCommand),
Expand All @@ -69,7 +69,7 @@ pub fn start_cli() -> eyre::Result<()> {
NargoCommand::Verify(args) => verify_cmd::run(args, matches.config),
NargoCommand::Test(args) => test_cmd::run(args, matches.config),
NargoCommand::Gates(args) => gates_cmd::run(args, matches.config),
NargoCommand::Contract(args) => contract_cmd::run(args, matches.config),
NargoCommand::CodegenVerifier(args) => codegen_verifier_cmd::run(args, matches.config),
}?;

Ok(())
Expand Down

0 comments on commit 2e63492

Please sign in to comment.