Skip to content

Commit

Permalink
feat(nargo): Add support for contracts in nargo check (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Aug 10, 2023
1 parent bb17499 commit 3d1b252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/nargo_cli/src/cli/check_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ fn check_package(package: &Package, compile_options: &CompileOptions) -> Result<
let (mut context, crate_id) = prepare_package(package);
check_crate_and_report_errors(&mut context, crate_id, compile_options.deny_warnings)?;

if package.is_library() {
// Libraries do not have ABIs.
if package.is_library() || package.is_contract() {
// Libraries do not have ABIs while contracts have many, so we cannot generate a `Prover.toml` file.
Ok(())
} else {
// XXX: We can have a --overwrite flag to determine if you want to overwrite the Prover/Verifier.toml files
Expand Down

0 comments on commit 3d1b252

Please sign in to comment.