Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Mar 21, 2024
1 parent b183a4c commit 0fde7d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions yarn-project/archiver/src/archiver/archiver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<bigint, number>;
}
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/archiver/src/archiver/eth_log_handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0fde7d7

Please sign in to comment.