From 0fde7d730a22c6baa5d8eb96b290f21d0edf5f10 Mon Sep 17 00:00:00 2001 From: benesjan Date: Thu, 21 Mar 2024 11:48:23 +0000 Subject: [PATCH] WIP --- yarn-project/archiver/src/archiver/archiver.test.ts | 3 +-- yarn-project/archiver/src/archiver/eth_log_handlers.ts | 2 +- yarn-project/sequencer-client/src/publisher/viem-tx-sender.ts | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/yarn-project/archiver/src/archiver/archiver.test.ts b/yarn-project/archiver/src/archiver/archiver.test.ts index c312e0471bd7..7754448a3f03 100644 --- a/yarn-project/archiver/src/archiver/archiver.test.ts +++ b/yarn-project/archiver/src/archiver/archiver.test.ts @@ -221,12 +221,11 @@ function makeLeafInsertedEvent(l1BlockNum: bigint, l2BlockNumber: bigint, index: function makeRollupTx(l2Block: L2Block) { const header = toHex(l2Block.header.toBuffer()); const archive = toHex(l2Block.archive.root.toBuffer()); - const body = toHex(l2Block.body.toBuffer()); const proof = `0x`; const input = encodeFunctionData({ abi: RollupAbi, functionName: 'process', - args: [header, archive, body, proof], + args: [header, archive, proof], }); return { input } as Transaction; } diff --git a/yarn-project/archiver/src/archiver/eth_log_handlers.ts b/yarn-project/archiver/src/archiver/eth_log_handlers.ts index 62404e9d5046..c3380efd8a58 100644 --- a/yarn-project/archiver/src/archiver/eth_log_handlers.ts +++ b/yarn-project/archiver/src/archiver/eth_log_handlers.ts @@ -91,7 +91,7 @@ async function getBlockMetadataFromRollupTx( if (functionName !== 'process') { throw new Error(`Unexpected method called ${functionName}`); } - const [headerHex, archiveRootHex] = args! as readonly [Hex, Hex, Hex, Hex]; + const [headerHex, archiveRootHex] = args! as readonly [Hex, Hex, Hex]; const header = Header.fromBuffer(Buffer.from(hexToBytes(headerHex))); diff --git a/yarn-project/sequencer-client/src/publisher/viem-tx-sender.ts b/yarn-project/sequencer-client/src/publisher/viem-tx-sender.ts index 7c41c469f1f2..700e2250e630 100644 --- a/yarn-project/sequencer-client/src/publisher/viem-tx-sender.ts +++ b/yarn-project/sequencer-client/src/publisher/viem-tx-sender.ts @@ -145,7 +145,6 @@ export class ViemTxSender implements L1PublisherTxSender { const args = [ `0x${encodedData.header.toString('hex')}`, `0x${encodedData.archive.toString('hex')}`, - `0x${encodedData.body.toString('hex')}`, `0x${encodedData.proof.toString('hex')}`, ] as const;