Skip to content

Commit

Permalink
refactor: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Oct 16, 2023
1 parent cb18f45 commit bbb2cf9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export class SequencerClient {
blockBuilder,
l2BlockSource,
l1ToL2MessageSource,
contractDataSource,
publicProcessorFactory,
config,
);
Expand Down
14 changes: 1 addition & 13 deletions yarn-project/sequencer-client/src/sequencer/sequencer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@ import {
makeEmptyProof,
} from '@aztec/circuits.js';
import { P2P, P2PClientState } from '@aztec/p2p';
import {
ContractDataSource,
L1ToL2MessageSource,
L2Block,
L2BlockSource,
MerkleTreeId,
Tx,
TxHash,
mockTx,
} from '@aztec/types';
import { L1ToL2MessageSource, L2Block, L2BlockSource, MerkleTreeId, Tx, TxHash, mockTx } from '@aztec/types';
import { MerkleTreeOperations, WorldStateRunningState, WorldStateSynchronizer } from '@aztec/world-state';

import { MockProxy, mock } from 'jest-mock-extended';
Expand Down Expand Up @@ -82,8 +73,6 @@ describe('sequencer', () => {
getBlockNumber: () => Promise.resolve(lastBlockNumber),
});

const contractDataSource = mock<ContractDataSource>({});

sequencer = new TestSubject(
publisher,
globalVariableBuilder,
Expand All @@ -92,7 +81,6 @@ describe('sequencer', () => {
blockBuilder,
l2BlockSource,
l1ToL2MessageSource,
contractDataSource,
publicProcessorFactory,
);
});
Expand Down
3 changes: 1 addition & 2 deletions yarn-project/sequencer-client/src/sequencer/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createDebugLogger } from '@aztec/foundation/log';
import { RunningPromise } from '@aztec/foundation/running-promise';
import { Timer, elapsed } from '@aztec/foundation/timer';
import { P2P } from '@aztec/p2p';
import { ContractDataSource, L1ToL2MessageSource, L2Block, L2BlockSource, MerkleTreeId, Tx } from '@aztec/types';
import { L1ToL2MessageSource, L2Block, L2BlockSource, MerkleTreeId, Tx } from '@aztec/types';
import { L2BlockBuiltStats } from '@aztec/types/stats';
import { WorldStateStatus, WorldStateSynchronizer } from '@aztec/world-state';

Expand Down Expand Up @@ -43,7 +43,6 @@ export class Sequencer {
private blockBuilder: BlockBuilder,
private l2BlockSource: L2BlockSource,
private l1ToL2MessageSource: L1ToL2MessageSource,
private contractDataSource: ContractDataSource,
private publicProcessorFactory: PublicProcessorFactory,
config: SequencerConfig = {},
private log = createDebugLogger('aztec:sequencer'),
Expand Down

0 comments on commit bbb2cf9

Please sign in to comment.