Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Aug 2, 2024
1 parent 562b9ec commit d7bb8eb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions yarn-project/simulator/src/client/simulator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { type FunctionArtifact, getFunctionArtifact } from '@aztec/foundation/ab
import { AztecAddress } from '@aztec/foundation/aztec-address';
import { poseidon2Hash } from '@aztec/foundation/crypto';
import { Fr, type Point } from '@aztec/foundation/fields';
import { TokenContractArtifact } from '@aztec/noir-contracts.js/Token';
import { TokenBlacklistContractArtifact } from '@aztec/noir-contracts.js';

import { type MockProxy, mock } from 'jest-mock-extended';

Expand Down Expand Up @@ -47,10 +47,13 @@ describe('Simulator', () => {
});

describe('computeNoteHashAndOptionallyANullifier', () => {
const artifact = getFunctionArtifact(TokenContractArtifact, 'compute_note_hash_and_optionally_a_nullifier');
const artifact = getFunctionArtifact(
TokenBlacklistContractArtifact,
'compute_note_hash_and_optionally_a_nullifier',
);
const nonce = Fr.random();
const storageSlot = TokenContractArtifact.storageLayout['balances'].slot;
const noteTypeId = TokenContractArtifact.notes['TokenNote'].id;
const storageSlot = TokenBlacklistContractArtifact.storageLayout['balances'].slot;
const noteTypeId = TokenBlacklistContractArtifact.notes['TokenNote'].id;

const createNote = (amount = 123n) => new Note([new Fr(amount), ownerMasterNullifierPublicKey.hash(), Fr.random()]);

Expand Down

0 comments on commit d7bb8eb

Please sign in to comment.