Skip to content

Commit

Permalink
final fixes?
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunkar committed Sep 24, 2024
1 parent 08fb04e commit ecac29d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BatchCall, EventType, Fr } from '@aztec/aztec.js';
import { BatchCall, EventType } from '@aztec/aztec.js';
import { TokenContract } from '@aztec/noir-contracts.js';

import { TokenContractTest } from './token_contract_test.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/simulator/src/client/test_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function computeNoteHash(storageSlot: Fr, noteContent: Fr[]): Fr {
const noteHidingPointBeforeSlotting = noteContent
.slice(1)
.reduce(
(acc, item, i) => grumpkin.add(acc, grumpkin.mul(GENERATORS[i], new Fq(item.toBigInt()))),
(acc, item, i) => grumpkin.add(acc, grumpkin.mul(GENERATORS[i + 1], new Fq(item.toBigInt()))),
grumpkin.mul(GENERATORS[0], new Fq(noteContent[0].toBigInt())),
);

Expand Down

0 comments on commit ecac29d

Please sign in to comment.