Skip to content

Commit

Permalink
More changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkeating committed Feb 14, 2024
1 parent 6b672ec commit d2eb84d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/WormholeL1VotePool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ contract WormholeL1VotePoolTest is TestConstants, WormholeRelayerBasicTest {
FakeERC20 l2Erc20;
FakeERC20 l1Erc20;
GovernorFlexibleVotingMock gov;
uint128 DEFAULT_VOTE_END;

event VoteCast(
address indexed voter,
Expand Down Expand Up @@ -49,6 +50,7 @@ contract WormholeL1VotePoolTest is TestConstants, WormholeRelayerBasicTest {
L1_CHAIN.wormholeChainId,
1200
);
DEFAULT_VOTE_END = uint128(l2VoteAggregator.CAST_VOTE_WINDOW()) + 1;
}

function setUpTarget() public override {
Expand Down Expand Up @@ -97,7 +99,7 @@ contract _ReceiveCastVoteWormholeMessages is WormholeL1VotePoolTest {
vm.deal(address(this), 10 ether);

l2VoteAggregator.createProposalVote(_proposalId, _l2Against, _l2For, _l2Abstain);
l2VoteAggregator.createProposal(_proposalId, uint128(l2VoteAggregator.CAST_VOTE_WINDOW()) + 1);
l2VoteAggregator.createProposal(_proposalId, DEFAULT_VOTE_END);
vm.expectEmit();
emit VoteBridged(_proposalId, _l2Against, _l2For, _l2Abstain);
l2VoteAggregator.bridgeVote{value: cost}(_proposalId);
Expand Down Expand Up @@ -151,7 +153,7 @@ contract _ReceiveCastVoteWormholeMessages is WormholeL1VotePoolTest {
vm.deal(address(this), 10 ether);

l2VoteAggregator.createProposalVote(_proposalId, _l2NewAgainst, _l2NewFor, _l2NewAbstain);
l2VoteAggregator.createProposal(_proposalId, uint128(l2VoteAggregator.CAST_VOTE_WINDOW()) + 1);
l2VoteAggregator.createProposal(_proposalId, DEFAULT_VOTE_END);
vm.expectEmit();
emit VoteBridged(_proposalId, _l2NewAgainst, _l2NewFor, _l2NewAbstain);
l2VoteAggregator.bridgeVote{value: cost}(_proposalId);
Expand Down

0 comments on commit d2eb84d

Please sign in to comment.