@@ -18,8 +18,11 @@ contract ZenithTest is Test {
18
18
19
19
event BlockSubmitted (
20
20
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 ,
23
26
bytes32 blockDataHash
24
27
);
25
28
@@ -73,7 +76,15 @@ contract ZenithTest is Test {
73
76
74
77
// should emit BlockSubmitted event
75
78
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
+ );
77
88
target.submitBlock (header, blockDataHash, v, r, s, blockData);
78
89
79
90
// should increment sequence number
@@ -110,7 +121,15 @@ contract ZenithTest is Test {
110
121
111
122
// should emit BlockSubmitted event
112
123
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
+ );
114
133
target.submitBlock (header, blockDataHash, v, r, s, blockData);
115
134
116
135
// incerement the header sequence
0 commit comments