Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sklppy88 committed Oct 29, 2024
1 parent d1f68ea commit 9bbb3f7
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 @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9bbb3f7

Please sign in to comment.