Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Apr 23, 2024
1 parent 56acee3 commit 6e1e316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
13 changes: 2 additions & 11 deletions yarn-project/end-to-end/src/composed/e2e_persistence.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,7 @@ describe('Aztec persistence', () => {
// mint some tokens with a secret we know and redeem later on a separate PXE
secret = Fr.random();
mintAmount = 1000n;
const mintTxReceipt = await contract.methods
.mint_private(mintAmount, computeSecretHash(secret))
.send()
.wait();
const mintTxReceipt = await contract.methods.mint_private(mintAmount, computeSecretHash(secret)).send().wait();
mintTxHash = mintTxReceipt.txHash;

// publicly reveal that I have 1000 tokens
Expand Down Expand Up @@ -307,13 +304,7 @@ describe('Aztec persistence', () => {

it('allows consuming transparent note created on another PXE', async () => {
// this was created in the temporary PXE in `beforeAll`
await addPendingShieldNoteToPXE(
ownerWallet,
contractAddress,
mintAmount,
computeSecretHash(secret),
mintTxHash,
);
await addPendingShieldNoteToPXE(ownerWallet, contractAddress, mintAmount, computeSecretHash(secret), mintTxHash);

const balanceBeforeRedeem = await contract.methods.balance_of_private(ownerWallet.getAddress()).simulate();

Expand Down
10 changes: 1 addition & 9 deletions yarn-project/end-to-end/src/sample-dapp/index.test.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { createAccount } from '@aztec/accounts/testing';
import {
Contract,
ExtendedNote,
Fr,
Note,
computeSecretHash,
createPXEClient,
waitForPXE,
} from '@aztec/aztec.js';
import { Contract, ExtendedNote, Fr, Note, computeSecretHash, createPXEClient, waitForPXE } from '@aztec/aztec.js';
import { TokenContractArtifact } from '@aztec/noir-contracts.js/Token';

const { PXE_URL = 'http://localhost:8080', ETHEREUM_HOST = 'http://localhost:8545' } = process.env;
Expand Down

0 comments on commit 6e1e316

Please sign in to comment.