@@ -16,7 +16,15 @@ contract ZenithTest is Test {
1616    uint256  sequencerKey =  123 ;
1717    uint256  notSequencerKey =  300 ;
1818
19-     event BlockSubmitted  (address  indexed  sequencer , Zenith.BlockHeader indexed  header , bytes32  blockDataHash );
19+     event BlockSubmitted  (
20+         address  indexed  sequencer ,
21+         uint256  indexed  rollupChainId ,
22+         uint256  indexed  sequence ,
23+         uint256  confirmBy ,
24+         uint256  gasLimit ,
25+         address  rewardAddress ,
26+         bytes32  blockDataHash 
27+     );
2028
2129    function setUp  () public  {
2230        target =  new  Zenith (block .chainid  +  1 , address (this ));
@@ -68,7 +76,15 @@ contract ZenithTest is Test {
6876
6977        // should emit BlockSubmitted event 
7078        vm.expectEmit ();
71-         emit  BlockSubmitted (vm.addr (sequencerKey), 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+         );
7288        target.submitBlock (header, blockDataHash, v, r, s, blockData);
7389
7490        // should increment sequence number 
@@ -105,7 +121,15 @@ contract ZenithTest is Test {
105121
106122        // should emit BlockSubmitted event 
107123        vm.expectEmit ();
108-         emit  BlockSubmitted (vm.addr (sequencerKey), 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+         );
109133        target.submitBlock (header, blockDataHash, v, r, s, blockData);
110134
111135        // incerement the header sequence 
0 commit comments