File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
l1-contracts/test/validator-selection Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ contract ValidatorSelectionTest is ValidatorSelectionTestBase {
81
81
});
82
82
83
83
bytes4 NO_REVERT = bytes4 (0 );
84
+ bytes4 ANY_REVERT = bytes4 (0xFFFFFFFF );
84
85
85
86
function testInitialCommitteeMatch () public setup (4 , 4 ) progressEpochs (2 ) {
86
87
address [] memory attesters = rollup.getAttesters ();
@@ -381,17 +382,14 @@ contract ValidatorSelectionTest is ValidatorSelectionTestBase {
381
382
// a block if you submit one with no signatures. This was a change from prior behavior where we had had
382
383
// that if there were zero validators in a rollup, anyone could build a block
383
384
384
- // TODO(palla): What should we do in this scenario? Block the proposal, or allow invalidating later?
385
- vm.skip (true );
386
-
387
385
GSE gse = rollup.getGSE ();
388
386
address caller = gse.owner ();
389
387
vm.prank (caller);
390
388
gse.addRollup (address (0xdead ));
391
389
assertEq (rollup.getCurrentEpochCommittee ().length , 4 );
392
390
_testBlock (
393
391
"mixed_block_1 " ,
394
- NO_REVERT ,
392
+ ANY_REVERT ,
395
393
0 ,
396
394
0 ,
397
395
TestFlags ({
@@ -543,7 +541,11 @@ contract ValidatorSelectionTest is ValidatorSelectionTestBase {
543
541
544
542
emit log ("Time to propose " );
545
543
if (_revertData != NO_REVERT) {
546
- vm.expectPartialRevert (_revertData);
544
+ if (_revertData == ANY_REVERT) {
545
+ vm.expectRevert ();
546
+ } else {
547
+ vm.expectPartialRevert (_revertData);
548
+ }
547
549
}
548
550
549
551
vm.prank (ree.sender);
You can’t perform that action at this time.
0 commit comments