diff --git a/yarn-project/circuits.js/src/structs/rollup/__snapshots__/root_rollup.test.ts.snap b/yarn-project/circuits.js/src/structs/rollup/__snapshots__/root_rollup.test.ts.snap index 5e5e74d9959b..fb1f9fbd6645 100644 --- a/yarn-project/circuits.js/src/structs/rollup/__snapshots__/root_rollup.test.ts.snap +++ b/yarn-project/circuits.js/src/structs/rollup/__snapshots__/root_rollup.test.ts.snap @@ -168,6 +168,15 @@ sibling_path: [ 0x1120 0x1121 0x1122 0x1123 0x1124 0x1125 0x1126 0x1127 ] ] new_historic_private_data_tree_roots: [ 0x2000 0x2001 0x2002 0x2003 0x2004 0x2005 0x2006 0x2007 ] new_historic_contract_tree_roots: [ 0x2100 0x2101 0x2102 0x2103 0x2104 0x2105 0x2106 0x2107 ] +new_l1_to_l2_messages: [ 0x2100 0x2101 0x2102 0x2103 0x2104 0x2105 0x2106 0x2107 0x2100 0x2101 0x2102 0x2103 0x2104 0x2105 0x2106 0x2107 ] +new_l1_to_l2_message_tree_root_sibling_path: [ 0x2100 0x2101 0x2102 0x2103 ] +new_historic_l1_to_l2_message_roots_tree_sibling_path: [ 0x2104 0x2105 0x2106 0x2107 0x2108 0x2109 0x210a 0x210b ] +start_l1_to_l2_message_tree_snapshot: root: 0x210c +next_available_leaf_index: 0 + +start_historic_tree_l1_to_l2_message_tree_roots_snapshot: root: 0x210d00000000 +next_available_leaf_index: 0 + " `; @@ -219,6 +228,19 @@ next_available_leaf_index: 2816 end_tree_of_historic_contract_tree_roots_snapshot: root: 0xc00 next_available_leaf_index: 3072 +start_l1_to_l2_messages_tree_snapshot: root: 0xd00 +next_available_leaf_index: 3328 + +end_l1_tol2_messages_tree_snapshot: root: 0xe00 +next_available_leaf_index: 3584 + +start_tree_of_historic_l1_to_l2_messages_tree_roots_snapshot: root: 0xf00 +next_available_leaf_index: 3840 + +end_tree_of_historic_l1_tol2_messages_tree_roots_snapshot: root: 0x1000 +next_available_leaf_index: 4096 + calldata_hash: [ 0x1 0x2 ] +l1_to_l2_messages_hash: [ 0x3 0x4 ] " `; diff --git a/yarn-project/sequencer-client/src/sequencer/sequencer.test.ts b/yarn-project/sequencer-client/src/sequencer/sequencer.test.ts index 97c91917e8a6..f0e3c8cd53e1 100644 --- a/yarn-project/sequencer-client/src/sequencer/sequencer.test.ts +++ b/yarn-project/sequencer-client/src/sequencer/sequencer.test.ts @@ -1,4 +1,4 @@ -import { makeEmptyProof } from '@aztec/circuits.js'; +import { NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP, makeEmptyProof } from '@aztec/circuits.js'; import { P2P, P2PClientState } from '@aztec/p2p'; import { L2Block, PrivateTx, Tx, UnverifiedData } from '@aztec/types'; import { MerkleTreeId, MerkleTreeOperations, WorldStateRunningState, WorldStateSynchroniser } from '@aztec/world-state'; @@ -64,6 +64,8 @@ describe('sequencer', () => { expect(blockBuilder.buildL2Block).toHaveBeenCalledWith( lastBlockNumber + 1, expectedTxHashes.map(hash => expect.objectContaining({ hash })), + // TODO: longer term solution to this + Array(NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP).fill(0), ); expect(publisher.processL2Block).toHaveBeenCalledWith(block); expect(publisher.processUnverifiedData).toHaveBeenCalledWith(lastBlockNumber + 1, expectedUnverifiedData); @@ -100,6 +102,8 @@ describe('sequencer', () => { expect(blockBuilder.buildL2Block).toHaveBeenCalledWith( lastBlockNumber + 1, expectedTxHashes.map(hash => expect.objectContaining({ hash })), + // TODO: longer term solution to this + Array(NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP).fill(0), ); expect(publisher.processL2Block).toHaveBeenCalledWith(block); expect(publisher.processUnverifiedData).toHaveBeenCalledWith(lastBlockNumber + 1, expectedUnverifiedData);