Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeNervoXS committed Jul 16, 2024
1 parent b3c1300 commit 495b62e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/utils
5 changes: 2 additions & 3 deletions test/invariant/DelegationInvariants.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ contract DelegationInvariants is Fixture {
_paramHandler = new Param(_NUM_PARAMS, ANGLE);

// Label newly created addresses
for (uint256 i; i < _NUM_DELEGATORS; i++) {
for (uint256 i; i < _NUM_DELEGATORS; i++)
vm.label(_delegatorHandler.actors(i), string.concat("Delegator ", Strings.toString(i)));
vm.label({ account: address(_paramHandler), newLabel: "Param" });

Expand Down Expand Up @@ -85,9 +85,8 @@ contract DelegationInvariants is Fixture {
for (uint256 i; i < _NUM_DELEGATORS; i++) {
address actor = _delegatorHandler.actors(i);
address delegatee = _delegatorHandler.delegations(actor);
if (delegatee != address(0) && delegatee != actor) {
if (delegatee != address(0) && delegatee != actor)
assertEq(token.getVotes(actor), 0, "Delegator should have null vote");
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/invariant/MainnetGovernorInvariants.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Proposer } from "./actors/Proposer.t.sol";
import { BadVoter } from "./actors/BadVoter.t.sol";
import { Fixture, AngleGovernor } from "../Fixture.t.sol";
import { ProposalStore, Proposal } from "./stores/ProposalStore.sol";
import { IGovernor } from "oz/governance/IGovernor.sol";
import { IGovernor } from "oz-v5/governance/IGovernor.sol";

//solhint-disable
import { console } from "forge-std/console.sol";
Expand Down
4 changes: 2 additions & 2 deletions test/invariant/actors/Proposer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ pragma solidity ^0.8.19;

import { BaseActor, IERC20, IERC20Metadata, AngleGovernor, TestStorage } from "./BaseActor.t.sol";
import { console } from "forge-std/console.sol";
import { IGovernor } from "oz/governance/IGovernor.sol";
import { IGovernor } from "oz-v5/governance/IGovernor.sol";
import { ProposalStore, Proposal } from "../stores/ProposalStore.sol";
import { IERC5805 } from "oz/interfaces/IERC5805.sol";
import { IERC5805 } from "oz-v5/interfaces/IERC5805.sol";

contract Proposer is BaseActor {
AngleGovernor internal _angleGovernor;
Expand Down
5 changes: 4 additions & 1 deletion test/unit/SimulationSetup.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ contract SimulationSetup is Test, CommonUtils {
mapChainIds[10] = "OPTIMISM";

setUpForks();
// TODO Complete with all deployed chains
if (vm.envExists("ETH_NODE_URI_FORK")) {
chainFork = vm.createFork(vm.envString("ETH_NODE_URI_FORK"));
forkIdentifier[CHAIN_FORK] = chainFork;
}

veANGLEDelegation = new VeANGLEVotingDelegation(address(veANGLE), "veANGLE Delegation", "1");

Expand Down

0 comments on commit 495b62e

Please sign in to comment.