Skip to content

Commit

Permalink
Soloseng/L2-epoch-manager-test (#11312)
Browse files Browse the repository at this point in the history
* WIP inheritance issues ?

* fixing compilation

* removed mento from UsingRegistryV2 in 08

* using local precompile handler

* fixed unit test inheritance conflicts

* removed shadowed var

* passing devchain e2e

* passing migration test

* override Utils08 setup and cleanup

* change Utils08 filename

* passing devchain

* reorg TestWithUtils08

* Passing L2 epochManagerEnabler test

* renamed to force update

* using capital letter

* wip partially migrated without mockAccounts contract

* ++ finish epoch processing L2 test

* clean up setup

* ++ more working L1 & L2 test

* ++ remaining L2 tests

* clean up comments

* more clean up

* PR feedback
  • Loading branch information
soloseng authored Jan 27, 2025
1 parent 388a65a commit ad82d50
Show file tree
Hide file tree
Showing 2 changed files with 331 additions and 219 deletions.
5 changes: 3 additions & 2 deletions packages/protocol/test-sol/TestWithUtils08.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ contract TestWithUtils08 is ForgeTest, TestConstants, IsL2Check, PrecompilesOver
epochManagerEnablerMockInterface.addValidator(_elected[1]);

for (uint256 i = 2; i < numberValidators; i++) {
vm.prank(vm.addr(i + 1));
address _currentValidator = vm.addr(i + 1);
vm.prank(_currentValidator);
accountsContract.createAccount();

epochManagerEnablerMockInterface.addValidator(vm.addr(i + 1));
epochManagerEnablerMockInterface.addValidator(_currentValidator);
}
travelNEpochL1(2);
}
Expand Down
Loading

0 comments on commit ad82d50

Please sign in to comment.