Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions yarn-project/end-to-end/src/e2e_block_building.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import { pedersenHash } from '@aztec/foundation/crypto';
import { TestContractArtifact } from '@aztec/noir-contracts/artifacts';
import { TestContract, TokenContract } from '@aztec/noir-contracts/types';
import { SequencerClient } from '@aztec/sequencer-client';

import times from 'lodash.times';

Expand All @@ -22,6 +23,7 @@ describe('e2e_block_building', () => {
let logger: DebugLogger;
let owner: Wallet;
let minter: Wallet;
let sequencer: SequencerClient | undefined;
let teardown: () => Promise<void>;

describe('multi-txs block', () => {
Expand All @@ -32,16 +34,19 @@ describe('e2e_block_building', () => {
teardown,
pxe,
logger,
sequencer,
wallets: [owner, minter],
} = await setup(2));
}, 100_000);

afterEach(() => sequencer?.updateSequencerConfig({ minTxsPerBlock: 1 }));
afterAll(() => teardown());

it('assembles a block with multiple txs', async () => {
// Assemble N contract deployment txs
// We need to create them sequentially since we cannot have parallel calls to a circuit
const TX_COUNT = 8;
sequencer!.updateSequencerConfig({ minTxsPerBlock: TX_COUNT });
const deployer = new ContractDeployer(artifact, owner);
const methods = times(TX_COUNT, () => deployer.deploy());

Expand Down