Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed May 3, 2024
1 parent 493a8f7 commit 3d4d3e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ contract Test {
#[aztec(private)]
fn test_nullifier_key_freshness(address: AztecAddress, public_nullifying_key: GrumpkinPoint) {
assert_eq(
get_fresh_nullifier_public_key_hash(&mut context, address), poseidon2_hash(public_nullifying_key.serialize())
get_fresh_nullifier_public_key_hash(&mut context, address), poseidon2_hash(public_nullifying_key.serialize()), "Failed to fetch fresh nullifier key"
);
}

Expand Down
6 changes: 2 additions & 4 deletions yarn-project/end-to-end/src/e2e_key_registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,7 @@ describe('Key Registry', () => {
.test_nullifier_key_freshness(wallets[0].getAddress(), newMasterNullifierPublicKey)
.send()
.wait(),
).rejects.toThrow(
`Cannot satisfy constraint 'assert_eq(get_fresh_nullifier_public_key_hash(&mut context, address), poseidon2_hash(public_nullifying_key.serialize()))'`,
);
).rejects.toThrow(/Failed to fetch fresh nullifier key/);

// We check it again after a delay and expect that the change has been applied and consequently the assert is true
await delay(5);
Expand All @@ -446,4 +444,4 @@ describe('Key Registry', () => {
.wait();
});
});
});
});

0 comments on commit 3d4d3e4

Please sign in to comment.