diff --git a/yarn-project/circuit-types/src/body.ts b/yarn-project/circuit-types/src/body.ts index 604adb442719..d4823630c0cf 100644 --- a/yarn-project/circuit-types/src/body.ts +++ b/yarn-project/circuit-types/src/body.ts @@ -6,9 +6,7 @@ import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize'; import { inspect } from 'util'; export class Body { - constructor( - public txEffects: TxEffect[], - ) {} + constructor(public txEffects: TxEffect[]) {} /** * Serializes a block body @@ -25,13 +23,10 @@ export class Body { static fromBuffer(buf: Buffer | BufferReader) { const reader = BufferReader.asReader(buf); - return new this( - reader.readVector(TxEffect), - ); + return new this(reader.readVector(TxEffect)); } [inspect.custom]() { - // print non empty l2ToL1Messages and txEffects return `Body { txEffects: ${inspect(this.txEffects)}, }`; @@ -93,7 +88,6 @@ export class Body { numPublicCallsPerTx = 3, numEncryptedLogsPerCall = 2, numUnencryptedLogsPerCall = 1, - numL1ToL2MessagesPerCall = 2, ) { const txEffects = [...new Array(txsPerBlock)].map(_ => TxEffect.random(numPrivateCallsPerTx, numPublicCallsPerTx, numEncryptedLogsPerCall, numUnencryptedLogsPerCall), diff --git a/yarn-project/circuit-types/src/l2_block.ts b/yarn-project/circuit-types/src/l2_block.ts index 772551a08205..e992456a7a05 100644 --- a/yarn-project/circuit-types/src/l2_block.ts +++ b/yarn-project/circuit-types/src/l2_block.ts @@ -104,7 +104,6 @@ export class L2Block { numPublicCallsPerTx = 3, numEncryptedLogsPerCall = 2, numUnencryptedLogsPerCall = 1, - numL1ToL2MessagesPerCall = 2, ): L2Block { const body = Body.random( txsPerBlock, @@ -112,7 +111,6 @@ export class L2Block { numPublicCallsPerTx, numEncryptedLogsPerCall, numUnencryptedLogsPerCall, - numL1ToL2MessagesPerCall, ); const txsEffectsHash = body.getTxsEffectsHash();