From a39a74e9136513313457c0c2448a84c01e2c0f09 Mon Sep 17 00:00:00 2001 From: benesjan Date: Fri, 11 Aug 2023 14:56:57 +0000 Subject: [PATCH] test: fix --- yarn-project/aztec.js/src/contract/contract.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yarn-project/aztec.js/src/contract/contract.test.ts b/yarn-project/aztec.js/src/contract/contract.test.ts index d97aa5031323..b7d62d93b4e5 100644 --- a/yarn-project/aztec.js/src/contract/contract.test.ts +++ b/yarn-project/aztec.js/src/contract/contract.test.ts @@ -8,11 +8,11 @@ import { MockProxy, mock } from 'jest-mock-extended'; import { Wallet } from '../aztec_rpc_client/wallet.js'; import { Contract } from './contract.js'; -describe('Contract Class', async () => { +describe('Contract Class', () => { let wallet: MockProxy; const contractAddress = AztecAddress.random(); - const account = await CompleteAddress.random(); + let account: CompleteAddress; const mockTx = { type: 'Tx' } as any as Tx; const mockTxRequest = { type: 'TxRequest' } as any as TxExecutionRequest; @@ -91,7 +91,8 @@ describe('Contract Class', async () => { portalContract: EthAddress.random(), }); - beforeEach(() => { + beforeEach(async () => { + account = await CompleteAddress.random(); wallet = mock(); wallet.createTxExecutionRequest.mockResolvedValue(mockTxRequest); wallet.getContractData.mockResolvedValue(ContractData.random());