Skip to content

fix: update nullifier non-inclusion test expectations after early oracle throw#21600

Merged
nchamo merged 1 commit intomerge-train/fairiesfrom
fix/nullifier-non-inclusion-test-message
Mar 16, 2026
Merged

fix: update nullifier non-inclusion test expectations after early oracle throw#21600
nchamo merged 1 commit intomerge-train/fairiesfrom
fix/nullifier-non-inclusion-test-message

Conversation

@nchamo
Copy link
Contributor

@nchamo nchamo commented Mar 16, 2026

Summary

  • Update 5 should_fail_with test expectations from "Proving nullifier non-inclusion failed" to "Cannot prove nullifier non-inclusion"
  • Include unrelated nargo fmt fix (0u64 -> 0_u64)

Context

PR #21472 changed getLowNullifierMembershipWitness in the aztec-node to throw a descriptive error early when a nullifier already exists in the tree, instead of returning the wrong witness and letting the circuit fail downstream. The new error message is "Cannot prove nullifier non-inclusion: nullifier ... already exists in the tree".

The Noir tests still expected the old downstream circuit error "Proving nullifier non-inclusion failed", causing them to fail with "Test failed with the wrong message".

Files changed

  • noir-projects/aztec-nr/aztec/src/history/nullifier/test.nr (2 tests)
  • noir-projects/aztec-nr/aztec/src/history/note/test.nr (1 test)
  • noir-projects/noir-contracts/contracts/test/test_contract/src/test/deployment_proofs.nr (2 tests)
  • noir-projects/noir-protocol-circuits/crates/types/.../test.nr (nargo fmt)

@nchamo nchamo self-assigned this Mar 16, 2026
let post_value = MockStruct { a: 3, b: 4 };

let sdc = ScheduledDelayChange::<0u64>::new(Option::some(1), Option::some(50), 2);
let sdc = ScheduledDelayChange::<0_u64>::new(Option::some(1), Option::some(50), 2);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatter kept changing this locally for me

@nchamo nchamo requested a review from benesjan March 16, 2026 14:11
Copy link
Contributor

@benesjan benesjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nchamo nchamo merged commit 52010f0 into merge-train/fairies Mar 16, 2026
11 checks passed
@nchamo nchamo deleted the fix/nullifier-non-inclusion-test-message branch March 16, 2026 14:31
@AztecBot
Copy link
Collaborator

❌ Failed to cherry-pick to v4-next due to conflicts. (🤖) View backport run.

AztecBot added a commit that referenced this pull request Mar 16, 2026
AztecBot added a commit that referenced this pull request Mar 16, 2026
…ns (v4-next)

Backport of #21600.
Updates 5 should_fail_with test expectations from "Proving nullifier
non-inclusion failed" to "Cannot prove nullifier non-inclusion".
AztecBot added a commit that referenced this pull request Mar 16, 2026
…ns (v4-next)

Backport of #21600.
Updates 5 should_fail_with test expectations from "Proving nullifier
non-inclusion failed" to "Cannot prove nullifier non-inclusion".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants