@@ -16,7 +16,15 @@ contract ZenithTest is Test {
16
16
uint256 sequencerKey = 123 ;
17
17
uint256 notSequencerKey = 300 ;
18
18
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
+ );
20
28
21
29
function setUp () public {
22
30
target = new Zenith (block .chainid + 1 , address (this ));
@@ -68,7 +76,15 @@ contract ZenithTest is Test {
68
76
69
77
// should emit BlockSubmitted event
70
78
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
+ );
72
88
target.submitBlock (header, blockDataHash, v, r, s, blockData);
73
89
74
90
// should increment sequence number
@@ -105,7 +121,15 @@ contract ZenithTest is Test {
105
121
106
122
// should emit BlockSubmitted event
107
123
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
+ );
109
133
target.submitBlock (header, blockDataHash, v, r, s, blockData);
110
134
111
135
// incerement the header sequence
0 commit comments