Skip to content

Commit

Permalink
fix: minor formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed May 3, 2024
1 parent 3ab050e commit 2ff6c57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AztecAddress, Fr, GrumpkinScalar } from '@aztec/circuits.js';
import { AztecAddress, GrumpkinScalar } from '@aztec/circuits.js';
import { Grumpkin } from '@aztec/circuits.js/barretenberg';
import { updateInlineTestData } from '@aztec/foundation/testing';

Expand Down
8 changes: 2 additions & 6 deletions yarn-project/end-to-end/src/e2e_encryption.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('e2e_encryption', () => {
expect(ciphertext).toEqual(expectedCiphertext);
});

it('encrypts header ', async () => {
it('encrypts header', async () => {
const ephSecretKey = GrumpkinScalar.random();
const viewingSecretKey = GrumpkinScalar.random();

Expand All @@ -64,11 +64,7 @@ describe('e2e_encryption', () => {

const encrypted = await contract.methods.compute_note_header_ciphertext(ephSecretKey, viewingPubKey).simulate();

const recreated = EncryptedLogHeader.fromCiphertext(
encrypted.map((x: bigint) => Number(x)),
viewingSecretKey,
ephPubKey,
);
const recreated = EncryptedLogHeader.fromCiphertext(encrypted, viewingSecretKey, ephPubKey);

expect(recreated.address).toEqual(contract.address);
});
Expand Down

0 comments on commit 2ff6c57

Please sign in to comment.