Skip to content

Commit

Permalink
fix: compute_note_hash_and_nullifier compiler check (#3351)
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan authored Oct 30, 2023
1 parent 191f836 commit 4e2d35f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/hir/aztec_library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fn transform_module(
// Check for a user defined storage struct
let storage_defined = check_for_storage_definition(&module);

if storage_defined && check_for_compute_note_hash_and_nullifier_definition(&module) {
if storage_defined && !check_for_compute_note_hash_and_nullifier_definition(&module) {
let crate_graph = &context.crate_graph[crate_id];
return Err((
DefCollectorErrorKind::AztecComputeNoteHashAndNullifierNotFound {
Expand Down
1 change: 1 addition & 0 deletions compiler/noirc_frontend/src/hir/def_collector/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pub enum DefCollectorErrorKind {
TraitImplOrphaned { span: Span },

// Aztec feature flag errors
// TODO(benesjan): https://github.com/AztecProtocol/aztec-packages/issues/2905
#[cfg(feature = "aztec")]
#[error("Aztec dependency not found. Please add aztec as a dependency in your Cargo.toml")]
AztecNotFound {},
Expand Down

0 comments on commit 4e2d35f

Please sign in to comment.