Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Aug 11, 2023
1 parent d831ccd commit a39a74e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions yarn-project/aztec.js/src/contract/contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Wallet>;

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;
Expand Down Expand Up @@ -91,7 +91,8 @@ describe('Contract Class', async () => {
portalContract: EthAddress.random(),
});

beforeEach(() => {
beforeEach(async () => {
account = await CompleteAddress.random();
wallet = mock<Wallet>();
wallet.createTxExecutionRequest.mockResolvedValue(mockTxRequest);
wallet.getContractData.mockResolvedValue(ContractData.random());
Expand Down

0 comments on commit a39a74e

Please sign in to comment.