Skip to content

Commit 259c70f

Browse files
committed
chore(fast-inbox): reflow InboxParityPrivateInputs.fromMessages call sites (A-1387)
The circuits cleanup dropped an argument from `fromMessages`, leaving three call sites hand-wrapped at the old width. All three now fit on one line at the repo's 120-column limit, so `yarn format --check` fails on them in CI. Prettier output only, no behaviour change.
1 parent fe3bdb9 commit 259c70f

3 files changed

Lines changed: 3 additions & 18 deletions

File tree

yarn-project/ivc-integration/src/base_parity_inputs.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ describe('Inbox Parity Benchmark Inputs', () => {
4242

4343
// Create InboxParity inputs (picks the 256 rung for 256 messages).
4444
const vkTreeRoot = getVKTreeRoot();
45-
const inputs = InboxParityPrivateInputs.fromMessages(
46-
l1ToL2Messages,
47-
Fr.ZERO,
48-
vkTreeRoot,
49-
Fr.random(),
50-
);
45+
const inputs = InboxParityPrivateInputs.fromMessages(l1ToL2Messages, Fr.ZERO, vkTreeRoot, Fr.random());
5146
logger.info('Created inbox parity inputs');
5247

5348
// Convert inputs to Noir format (inline the mapping since it's simple)

yarn-project/ivc-integration/src/bb_js_debug.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@ describe('BB.js Debug Wrapper', () => {
5757
// Generate inbox parity inputs (same approach as base_parity_inputs.test.ts)
5858
const l1ToL2Messages = new Array(INBOX_PARITY_SIZE_MEDIUM).fill(null).map(() => Fr.random());
5959
const vkTreeRoot = getVKTreeRoot();
60-
const inboxParityInputs = InboxParityPrivateInputs.fromMessages(
61-
l1ToL2Messages,
62-
Fr.ZERO,
63-
vkTreeRoot,
64-
Fr.random(),
65-
);
60+
const inboxParityInputs = InboxParityPrivateInputs.fromMessages(l1ToL2Messages, Fr.ZERO, vkTreeRoot, Fr.random());
6661

6762
const noirInputs = {
6863
msgs: inboxParityInputs.messages.map(m => m.toString()),

yarn-project/stdlib/src/parity/inbox_parity_private_inputs.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,7 @@ export class InboxParityPrivateInputs {
5353
* Builds the inputs from a checkpoint's real messages, sizing the circuit by the message count and padding the
5454
* message array out to that size.
5555
*/
56-
static fromMessages(
57-
messages: Fr[],
58-
startRollingHash: Fr,
59-
vkTreeRoot: Fr,
60-
proverId: Fr,
61-
): InboxParityPrivateInputs {
56+
static fromMessages(messages: Fr[], startRollingHash: Fr, vkTreeRoot: Fr, proverId: Fr): InboxParityPrivateInputs {
6257
const size = pickInboxParitySize(messages.length);
6358
// Explicit `<Fr, number>` keeps the result `Fr[]`; padding to the union-literal `size` would infer a deep tuple.
6459
return new InboxParityPrivateInputs(

0 commit comments

Comments
 (0)