Skip to content

Commit

Permalink
Update flexible-voting to version v1.1.3
Browse files Browse the repository at this point in the history
This version of Flexible Voting updates the underlying openzeppelin-contracts
dependency to version v4.9.3
  • Loading branch information
apbendi committed Nov 24, 2023
1 parent 8a29fc4 commit d263a42
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
url = https://github.com/foundry-rs/forge-std
[submodule "lib/flexible-voting"]
path = lib/flexible-voting
url = https://github.com/ScopeLift/flexible-voting
url = https://github.com/scopelift/flexible-voting
2 changes: 1 addition & 1 deletion lib/flexible-voting
23 changes: 19 additions & 4 deletions test/GuineaPigGovernor.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,35 @@ pragma solidity 0.8.22;

import {Test, console2} from "forge-std/Test.sol";
import {GuineaPigGovernor, IVotes, TimelockController} from "src/GuineaPigGovernor.sol";
import {GuineaPigToken} from "src/GuineaPigToken.sol";

contract GuineaPigGovernorTest is Test {
GuineaPigGovernor governor;

IVotes token = IVotes(address(0x01b));
TimelockController timelock = TimelockController(payable(address(0x01c)));
IVotes token;
TimelockController timelock;

uint256 INITIAL_VOTING_DELAY = 50;
uint256 INITIAL_VOTING_PERIOD = 7200;
uint256 INITIAL_PROPOSAL_THRESHOLD = 100_000e18;

function setUp() public {
governor =
new GuineaPigGovernor(token, INITIAL_VOTING_DELAY, INITIAL_VOTING_PERIOD, INITIAL_PROPOSAL_THRESHOLD, timelock);
timelock = new TimelockController(
100,
new address[](0),
new address[](0),
address(this)
);

token = new GuineaPigToken(address(timelock), address(0xcafe), 100e18);

governor = new GuineaPigGovernor(
token,
INITIAL_VOTING_DELAY,
INITIAL_VOTING_PERIOD,
INITIAL_PROPOSAL_THRESHOLD,
timelock
);
}
}

Expand Down

0 comments on commit d263a42

Please sign in to comment.