From d7713c1c2080179b5b2dac25b943ae7b30650817 Mon Sep 17 00:00:00 2001 From: sklppy88 Date: Tue, 29 Oct 2024 11:55:38 +0000 Subject: [PATCH] init --- .../end-to-end/src/benchmarks/bench_prover.test.ts | 2 -- .../src/composed/e2e_persistence.test.ts | 3 --- yarn-project/end-to-end/src/e2e_event_logs.test.ts | 14 ++------------ .../end-to-end/src/e2e_fees/account_init.test.ts | 3 --- .../e2e_token_contract/transfer_private.test.ts | 1 - 5 files changed, 2 insertions(+), 21 deletions(-) diff --git a/yarn-project/end-to-end/src/benchmarks/bench_prover.test.ts b/yarn-project/end-to-end/src/benchmarks/bench_prover.test.ts index 45e7ce812c05..2d8254319b04 100644 --- a/yarn-project/end-to-end/src/benchmarks/bench_prover.test.ts +++ b/yarn-project/end-to-end/src/benchmarks/bench_prover.test.ts @@ -153,8 +153,6 @@ describe('benchmarks/proving', () => { await pxe.registerContract(initialTestContract); await pxe.registerContract(initialFpContract); - await pxe.registerRecipient(recipient); - provingPxes.push(pxe); } /*TODO(post-honk): We wait 5 seconds for a race condition in setting up 4 nodes. diff --git a/yarn-project/end-to-end/src/composed/e2e_persistence.test.ts b/yarn-project/end-to-end/src/composed/e2e_persistence.test.ts index 783d5ca6feae..fabf8f8bae68 100644 --- a/yarn-project/end-to-end/src/composed/e2e_persistence.test.ts +++ b/yarn-project/end-to-end/src/composed/e2e_persistence.test.ts @@ -209,8 +209,6 @@ describe('Aztec persistence', () => { }); it('pxe does not know of the deployed contract', async () => { - await context.pxe.registerRecipient(ownerAddress); - const wallet = await getUnsafeSchnorrAccount(context.pxe, Fr.random(), Fr.ZERO).waitSetup(); await expect(TokenBlacklistContract.at(contractAddress, wallet)).rejects.toThrow(/has not been registered/); }); @@ -220,7 +218,6 @@ describe('Aztec persistence', () => { artifact: TokenBlacklistContract.artifact, instance: contractInstance, }); - await context.pxe.registerRecipient(ownerAddress); const wallet = await getUnsafeSchnorrAccount(context.pxe, Fr.random(), Fr.ZERO).waitSetup(); const contract = await TokenBlacklistContract.at(contractAddress, wallet); diff --git a/yarn-project/end-to-end/src/e2e_event_logs.test.ts b/yarn-project/end-to-end/src/e2e_event_logs.test.ts index e508c603affd..cc0416155c16 100644 --- a/yarn-project/end-to-end/src/e2e_event_logs.test.ts +++ b/yarn-project/end-to-end/src/e2e_event_logs.test.ts @@ -1,11 +1,4 @@ -import { - type AccountWalletWithSecretKey, - type AztecNode, - EventType, - Fr, - L1EventPayload, - type PXE, -} from '@aztec/aztec.js'; +import { type AccountWalletWithSecretKey, type AztecNode, EventType, Fr, L1EventPayload } from '@aztec/aztec.js'; import { EventSelector } from '@aztec/foundation/abi'; import { makeTuple } from '@aztec/foundation/array'; import { type Tuple } from '@aztec/foundation/serialize'; @@ -23,18 +16,15 @@ describe('Logs', () => { let wallets: AccountWalletWithSecretKey[]; let node: AztecNode; - let pxe: PXE; let teardown: () => Promise; beforeAll(async () => { - ({ teardown, wallets, aztecNode: node, pxe } = await setup(2)); + ({ teardown, wallets, aztecNode: node } = await setup(2)); await ensureAccountsPubliclyDeployed(wallets[0], wallets.slice(0, 2)); testLogContract = await TestLogContract.deploy(wallets[0]).send().deployed(); - - await pxe.registerRecipient(wallets[1].getCompleteAddress()); }); afterAll(() => teardown()); diff --git a/yarn-project/end-to-end/src/e2e_fees/account_init.test.ts b/yarn-project/end-to-end/src/e2e_fees/account_init.test.ts index 53b0b18e5101..835ebd25ba24 100644 --- a/yarn-project/end-to-end/src/e2e_fees/account_init.test.ts +++ b/yarn-project/end-to-end/src/e2e_fees/account_init.test.ts @@ -182,9 +182,6 @@ describe('e2e_fees account_init', () => { const bobsSigningPubKey = new Schnorr().computePublicKey(bobsPrivateSigningKey); const bobsInstance = bobsAccountManager.getInstance(); - // alice registers bobs keys in the pxe - await pxe.registerRecipient(bobsCompleteAddress); - // and deploys bob's account, paying the fee from her balance const paymentMethod = new FeeJuicePaymentMethod(aliceAddress); const tx = await SchnorrAccountContract.deployWithPublicKeys( diff --git a/yarn-project/end-to-end/src/e2e_token_contract/transfer_private.test.ts b/yarn-project/end-to-end/src/e2e_token_contract/transfer_private.test.ts index 5865ac3343a9..8e5b443a883b 100644 --- a/yarn-project/end-to-end/src/e2e_token_contract/transfer_private.test.ts +++ b/yarn-project/end-to-end/src/e2e_token_contract/transfer_private.test.ts @@ -56,7 +56,6 @@ describe('e2e_token_contract transfer private', () => { expect(amount).toBeGreaterThan(0n); const nonDeployed = CompleteAddress.random(); - await wallets[0].registerRecipient(nonDeployed); await asset.methods.transfer(nonDeployed.address, amount).send().wait();