From 8d0d8da5a545d01fc293ce255d3e1c17335e3421 Mon Sep 17 00:00:00 2001 From: sklppy88 Date: Tue, 29 Oct 2024 01:24:47 +0000 Subject: [PATCH] init --- .../end-to-end/src/e2e_2_pxes.test.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/yarn-project/end-to-end/src/e2e_2_pxes.test.ts b/yarn-project/end-to-end/src/e2e_2_pxes.test.ts index 1ded4d5f9c8c..0d2414812aae 100644 --- a/yarn-project/end-to-end/src/e2e_2_pxes.test.ts +++ b/yarn-project/end-to-end/src/e2e_2_pxes.test.ts @@ -128,11 +128,6 @@ describe('e2e_2_pxes', () => { const token = await deployTokenContract(initialBalance, walletA.getAddress(), pxeA); - // Add account B to wallet A - await pxeA.registerRecipient(walletB.getCompleteAddress()); - // Add account A to wallet B - await pxeB.registerRecipient(walletA.getCompleteAddress()); - // Add token to PXE B (PXE A already has it because it was deployed through it) await pxeB.registerContract(token); @@ -215,11 +210,6 @@ describe('e2e_2_pxes', () => { const token = await deployTokenContract(userABalance, walletA.getAddress(), pxeA); const contractWithWalletA = await TokenContract.at(token.address, walletA); - // Add account B to wallet A - await pxeA.registerRecipient(walletB.getCompleteAddress()); - // Add account A to wallet B - await pxeB.registerRecipient(walletA.getCompleteAddress()); - // Add token to PXE B (PXE A already has it because it was deployed through it) await pxeB.registerContract(token); @@ -266,11 +256,6 @@ describe('e2e_2_pxes', () => { const token = await deployTokenContract(initialBalance, walletA.getAddress(), pxeA); const tokenAddress = token.address; - // Add account B to wallet A - await pxeA.registerRecipient(walletB.getCompleteAddress()); - // Add account A to wallet B - await pxeB.registerRecipient(walletA.getCompleteAddress()); - // Check initial balances and logs are as expected await expectTokenBalance(walletA, tokenAddress, walletA.getAddress(), initialBalance); // don't check userB yet @@ -303,9 +288,6 @@ describe('e2e_2_pxes', () => { await sharedAccountOnB.register(); const sharedWalletOnB = await sharedAccountOnB.getWallet(); - // Register wallet B in the pxe of wallet A - await pxeA.registerRecipient(walletB.getCompleteAddress()); - // deploy the contract on PXE A const token = await deployTokenContract(initialBalance, walletA.getAddress(), pxeA); @@ -376,8 +358,6 @@ describe('e2e_2_pxes', () => { // 4. Adds the nullified public key note to PXE B { - // We need to register the recipient to be able to obtain IvpkM for the note - await pxeB.registerRecipient(walletA.getCompleteAddress()); // We need to register the contract to be able to compute the note hash by calling compute_note_hash_and_optionally_a_nullifier(...) await pxeB.registerContract(testContract); await pxeB.addNullifiedNote(note);