@@ -18,8 +18,11 @@ contract ZenithTest is Test {
1818
1919 event BlockSubmitted (
2020 address indexed sequencer ,
21- Zenith.BlockHeader indexed headerHash ,
22- Zenith.BlockHeader header ,
21+ uint256 indexed rollupChainId ,
22+ uint256 indexed sequence ,
23+ uint256 confirmBy ,
24+ uint256 gasLimit ,
25+ address rewardAddress ,
2326 bytes32 blockDataHash
2427 );
2528
@@ -73,7 +76,15 @@ contract ZenithTest is Test {
7376
7477 // should emit BlockSubmitted event
7578 vm.expectEmit ();
76- emit BlockSubmitted (vm.addr (sequencerKey), header, header, blockDataHash);
79+ emit BlockSubmitted (
80+ vm.addr (sequencerKey),
81+ header.rollupChainId,
82+ header.sequence,
83+ header.confirmBy,
84+ header.gasLimit,
85+ header.rewardAddress,
86+ blockDataHash
87+ );
7788 target.submitBlock (header, blockDataHash, v, r, s, blockData);
7889
7990 // should increment sequence number
@@ -110,7 +121,15 @@ contract ZenithTest is Test {
110121
111122 // should emit BlockSubmitted event
112123 vm.expectEmit ();
113- emit BlockSubmitted (vm.addr (sequencerKey), header, header, blockDataHash);
124+ emit BlockSubmitted (
125+ vm.addr (sequencerKey),
126+ header.rollupChainId,
127+ header.sequence,
128+ header.confirmBy,
129+ header.gasLimit,
130+ header.rewardAddress,
131+ blockDataHash
132+ );
114133 target.submitBlock (header, blockDataHash, v, r, s, blockData);
115134
116135 // incerement the header sequence
0 commit comments