Skip to content

Commit

Permalink
1865 - fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmon committed Aug 30, 2023
1 parent 6d0d3c8 commit 26cefe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yarn-project/circuits.js/src/tests/factories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ export function makePublicCircuitPublicInputs(
* @param seed - The seed to use for generating the kernel circuit public inputs.
* @returns Kernel circuit public inputs.
*/
export function makeKernelPublicInputs(seed = 1): KernelCircuitPublicInputs {
return new KernelCircuitPublicInputs(makeAccumulatedData(seed, false), makeConstantData(seed + 0x100), true);
export function makeKernelPublicInputs(seed = 1, fullAccumulatedData = true): KernelCircuitPublicInputs {
return new KernelCircuitPublicInputs(makeAccumulatedData(seed, fullAccumulatedData), makeConstantData(seed + 0x100), true);
}

/**
Expand Down Expand Up @@ -437,7 +437,7 @@ export function makePoint(seed = 1): Point {
*/
export function makePreviousKernelData(seed = 1, kernelPublicInputs?: KernelCircuitPublicInputs): PreviousKernelData {
return new PreviousKernelData(
kernelPublicInputs ?? makeKernelPublicInputs(seed),
kernelPublicInputs ?? makeKernelPublicInputs(seed, true),
new Proof(Buffer.alloc(16, seed + 0x80)),
makeVerificationKey(),
0x42,
Expand Down Expand Up @@ -564,7 +564,7 @@ export async function makePublicKernelInputsWithTweak(
seed = 1,
tweak?: (publicKernelInputs: PublicKernelInputs) => void,
): Promise<PublicKernelInputs> {
const kernelCircuitPublicInputs = makeKernelPublicInputs(seed);
const kernelCircuitPublicInputs = makeKernelPublicInputs(seed, false);
const publicKernelInputs = new PublicKernelInputs(
makePreviousKernelData(seed, kernelCircuitPublicInputs),
await makePublicCallData(seed + 0x1000),
Expand Down

0 comments on commit 26cefe1

Please sign in to comment.