Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sklppy88 committed Oct 30, 2024
1 parent 9cd048e commit d7713c1
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 21 deletions.
2 changes: 0 additions & 2 deletions yarn-project/end-to-end/src/benchmarks/bench_prover.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 0 additions & 3 deletions yarn-project/end-to-end/src/composed/e2e_persistence.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
});
Expand All @@ -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);
Expand Down
14 changes: 2 additions & 12 deletions yarn-project/end-to-end/src/e2e_event_logs.test.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -23,18 +16,15 @@ describe('Logs', () => {

let wallets: AccountWalletWithSecretKey[];
let node: AztecNode;
let pxe: PXE;

let teardown: () => Promise<void>;

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());
Expand Down
3 changes: 0 additions & 3 deletions yarn-project/end-to-end/src/e2e_fees/account_init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit d7713c1

Please sign in to comment.