Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(nargo)!: rename contract command to codegen-verifier #959

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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