Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkeating committed Sep 18, 2023
1 parent 5663e36 commit 627ace9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/WormholeL1VotePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ contract WormholeL1VotePool is L1VotePool {
_castVote(
proposalId,
ProposalVote(
forVotes - existingProposalVote.forVotes,
againstVotes - existingProposalVote.againstVotes,
forVotes - existingProposalVote.forVotes,
abstainVotes - existingProposalVote.abstainVotes
)
);
Expand Down
1 change: 0 additions & 1 deletion test/WormholeL1VotePool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ contract _ReceiveCastVoteWormholeMessages is L1VotePoolTest {

vm.selectFork(targetFork);
(uint128 l1Against, uint128 l1For, uint128 l1Abstain) = l1VotePool.proposalVotes(_proposalId);
l1VotePool.proposalVotes(_proposalId);

assertEq(l1Against, _l2Against, "Against value was not bridged correctly");
assertEq(l1For, _l2For, "For value was not bridged correctly");
Expand Down
8 changes: 4 additions & 4 deletions test/WormholeL2VoteAggregator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ contract Constructor is L2VoteAggregatorTest {
contract CastVote is L2VoteAggregatorTest {
function testFuzz_RevertWhen_BeforeProposalStart(uint96 _amount, uint8 _support) public {
vm.assume(_support < 3);
L2VoteAggregator.VoteType _voteType = L2VoteAggregator.VoteType(_support);
L2VoteAggregator.VoteType _voteType = L2VoteAggregator.VoteType(_support);

l2Erc20.mint(address(this), _amount);

Expand All @@ -179,7 +179,7 @@ contract CastVote is L2VoteAggregatorTest {
) public {
vm.assume(_amount != 0);
vm.assume(_support < 3);
L2VoteAggregator.VoteType _voteType = L2VoteAggregator.VoteType(_support);
L2VoteAggregator.VoteType _voteType = L2VoteAggregator.VoteType(_support);

_proposalDuration = uint64(
bound(_proposalDuration, l2VoteAggregator.CAST_VOTE_WINDOW(), type(uint64).max - block.number)
Expand All @@ -202,7 +202,7 @@ contract CastVote is L2VoteAggregatorTest {
function testFuzz_RevertWhen_VoterHasAlreadyVoted(uint96 _amount, uint8 _support) public {
vm.assume(_amount != 0);
vm.assume(_support < 3);
L2VoteAggregator.VoteType _voteType = L2VoteAggregator.VoteType(_support);
L2VoteAggregator.VoteType _voteType = L2VoteAggregator.VoteType(_support);

l2Erc20.mint(address(this), _amount);

Expand All @@ -219,7 +219,7 @@ contract CastVote is L2VoteAggregatorTest {
function testFuzz_RevertWhen_VoterHasNoWeight(uint96 _amount, uint8 _support) public {
vm.assume(_amount != 0);
vm.assume(_support < 3);
L2VoteAggregator.VoteType _voteType = L2VoteAggregator.VoteType(_support);
L2VoteAggregator.VoteType _voteType = L2VoteAggregator.VoteType(_support);

L2GovernorMetadata.Proposal memory l2Proposal =
l2VoteAggregator.GOVERNOR_METADATA().getProposal(1);
Expand Down

0 comments on commit 627ace9

Please sign in to comment.