Skip to content

Commit

Permalink
removed validator contract
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Dec 18, 2023
1 parent dd3e2ed commit ca6ea60
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "@celo-contracts/common/FixidityLib.sol";
import "@celo-contracts/common/interfaces/IRegistry.sol";
import "@celo-contracts/governance/Proposals.sol";
import "@celo-contracts/governance/test/MockLockedGold.sol";
import "@celo-contracts/governance/test/MockValidators.sol";

// Contract to test
import "@celo-contracts/governance/GovernanceSlasher.sol";
Expand All @@ -20,14 +19,12 @@ contract GovernanceSlasherTest is Test {
IRegistry registry;
Accounts accounts;
MockLockedGold mockLockedGold;
MockValidators mockValidators;

GovernanceSlasher public governanceSlasher;
address owner;
address nonOwner;
address validator;
address slashedAddress;

address registryAddress = 0x000000000000000000000000000000000000ce10;

function setUp() public {
Expand All @@ -38,14 +35,12 @@ contract GovernanceSlasherTest is Test {

accounts = new Accounts(true);
mockLockedGold = new MockLockedGold();
mockValidators = new MockValidators();
governanceSlasher = new GovernanceSlasher(true);

deployCodeTo("Registry.sol", abi.encode(false), registryAddress);
registry = IRegistry(registryAddress);
registry.setAddressFor("Accounts", address(accounts));
registry.setAddressFor("LockedGold", address(mockLockedGold));
registry.setAddressFor("Validators", address(mockValidators));

governanceSlasher.initialize(registryAddress);
mockLockedGold.setAccountTotalLockedGold(validator, 5000);
Expand Down Expand Up @@ -85,7 +80,6 @@ contract GovernanceSlasherApproveSlashingTest is GovernanceSlasherTest {
vm.expectEmit(true, true, true, true);
emit SlashingApproved(slashedAddress, 1000);
governanceSlasher.approveSlashing(slashedAddress, 1000);

}
}

Expand Down

0 comments on commit ca6ea60

Please sign in to comment.