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 0c5121f commit 9cd048e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions yarn-project/end-to-end/src/e2e_2_pxes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ describe('e2e_2_pxes', () => {

const token = await deployToken(walletA, initialBalance, logger);

// 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);

Expand Down Expand Up @@ -145,11 +140,6 @@ describe('e2e_2_pxes', () => {

const token = await deployToken(walletA, userABalance, logger);

// 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);

Expand Down Expand Up @@ -194,11 +184,6 @@ describe('e2e_2_pxes', () => {

const token = await deployToken(walletA, initialBalance, logger);

// 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 are as expected
await expectTokenBalance(walletA, token, walletA.getAddress(), initialBalance, logger);
// don't check userB yet
Expand Down Expand Up @@ -229,9 +214,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 deployToken(walletA, initialBalance, logger);

Expand Down Expand Up @@ -304,8 +286,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);
Expand Down

0 comments on commit 9cd048e

Please sign in to comment.