Skip to content

Commit

Permalink
clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Jan 16, 2025
1 parent 0b31d9c commit 286e569
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 52 deletions.
11 changes: 0 additions & 11 deletions packages/protocol/test-sol/TestWithUtils08.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import "@celo-contracts/common/interfaces/IRegistry.sol";
import { IAccounts } from "@celo-contracts/common/interfaces/IAccounts.sol";

import "@celo-contracts-8/common/mocks/EpochManager_WithMocks.sol";
import { MockAccounts } from "@celo-contracts-8/common/mocks/MockAccounts.sol";
import "@celo-contracts-8/common/IsL2Check.sol";
import "@celo-contracts-8/common/PrecompilesOverrideV2.sol";
import { console } from "forge-std-8/console.sol";
Expand All @@ -20,7 +19,6 @@ contract TestWithUtils08 is ForgeTest, TestConstants, IsL2Check, PrecompilesOver
PrecompileHandler ph;
EpochManager_WithMocks public epochManager;
EpochManagerEnablerMock epochManagerEnabler;
MockAccounts accountss;

IAccounts accountsContract;
IEpochManagerEnablerMock epochManagerEnablerMockInterface;
Expand Down Expand Up @@ -51,12 +49,7 @@ contract TestWithUtils08 is ForgeTest, TestConstants, IsL2Check, PrecompilesOver
deployCodeTo("Accounts.sol", abi.encode(false), accountsAddress);
accountsContract = IAccounts(accountsAddress);

// accountss = new MockAccounts();

// registry.setAddressFor(AccountsContract, address(accountss));
// console.log("### Accounts address: ", address(accountss));
registry.setAddressFor(AccountsContract, accountsAddress);
console.log("### Accounts address: ", accountsAddress);
}

function setupEpochManager() public {
Expand Down Expand Up @@ -137,19 +130,16 @@ contract TestWithUtils08 is ForgeTest, TestConstants, IsL2Check, PrecompilesOver

vm.prank(_elected[0]);
accountsContract.createAccount();
// accountss.setValidatorSigner(_elected[0], _elected[0]);
epochManagerEnablerMockInterface.addValidator(_elected[0]);

vm.prank(_elected[1]);
accountsContract.createAccount();
// accountss.setValidatorSigner(_elected[1], _elected[1]);
epochManagerEnablerMockInterface.addValidator(_elected[1]);

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

epochManagerEnablerMockInterface.addValidator(_currentValidator);
}
Expand All @@ -164,7 +154,6 @@ contract TestWithUtils08 is ForgeTest, TestConstants, IsL2Check, PrecompilesOver
whenL2();

epochManagerEnabler.initEpochManager();
console.log("### Done initEpochManager");
}

function whenL2WithoutEpochManagerInitialization() internal {
Expand Down
Loading

0 comments on commit 286e569

Please sign in to comment.