Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove private kernel snapshot test #5829

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions yarn-project/end-to-end/src/e2e_nested_contract.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { type AztecAddress, BatchCall, type DebugLogger, Fr, type PXE, type Wallet, toBigIntBE } from '@aztec/aztec.js';
import { getTestData, isGenerateTestDataEnabled } from '@aztec/foundation/testing';
import { ChildContract, ImportTestContract, ParentContract, TestContract } from '@aztec/noir-contracts.js';

import { writeFileSync } from 'fs';

import { setup } from './fixtures/utils.js';

describe('e2e_nested_contract', () => {
Expand Down Expand Up @@ -34,35 +31,6 @@ describe('e2e_nested_contract', () => {
.entry_point(childContract.address, childContract.methods.value.selector)
.send()
.wait();

if (isGenerateTestDataEnabled()) {
{
const privateKernelInputsInit = getTestData('private-kernel-inputs-init');
const nestedCallPrivateKernelInput = privateKernelInputsInit[0];
writeFileSync(
'../noir-protocol-circuits-types/src/fixtures/nested-call-private-kernel-init.hex',
nestedCallPrivateKernelInput.toBuffer().toString('hex'),
);
}

{
const privateKernelInputsInner = getTestData('private-kernel-inputs-inner');
const nestedCallPrivateKernelInput = privateKernelInputsInner[privateKernelInputsInner.length - 1];
writeFileSync(
'../noir-protocol-circuits-types/src/fixtures/nested-call-private-kernel-inner.hex',
nestedCallPrivateKernelInput.toBuffer().toString('hex'),
);
}

{
const privateKernelInputsOrdering = getTestData('private-kernel-inputs-ordering');
const nestedCallPrivateKernelInput = privateKernelInputsOrdering[0];
writeFileSync(
'../noir-protocol-circuits-types/src/fixtures/nested-call-private-kernel-ordering.hex',
nestedCallPrivateKernelInput.toBuffer().toString('hex'),
);
}
}
}, 100_000);

it('fails simulation if calling a function not allowed to be called externally', async () => {
Expand Down
Loading
Loading