Skip to content

Commit

Permalink
add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
critesjosh committed Aug 5, 2024
1 parent 0797536 commit b7688a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EasyPrivateVotingContractArtifact, EasyPrivateVotingContract } from "../artifacts/EasyPrivateVoting.js"
import { AccountWallet, CompleteAddress, ContractDeployer, Fr, PXE, waitForPXE, TxStatus, createPXEClient, getContractInstanceFromDeployParams, deriveKeys } from "@aztec/aztec.js";
import { AccountWallet, CompleteAddress, ContractDeployer, createDebugLogger, Fr, PXE, waitForPXE, TxStatus, createPXEClient, getContractInstanceFromDeployParams, DebugLogger } from "@aztec/aztec.js";
import { getInitialTestAccountsWallets } from "@aztec/accounts/testing"

const setupSandbox = async () => {
Expand All @@ -13,8 +13,12 @@ describe("Voting", () => {
let pxe: PXE;
let wallets: AccountWallet[] = [];
let accounts: CompleteAddress[] = [];
let logger: DebugLogger;

beforeAll(async () => {
logger = createDebugLogger('aztec:aztec-starter');
logger.info("Aztec-Starter tests running.")

pxe = await setupSandbox();

wallets = await getInitialTestAccountsWallets(pxe);
Expand Down

0 comments on commit b7688a3

Please sign in to comment.