Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkeating authored and apbendi committed Oct 12, 2023
1 parent f005458 commit e4df2f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Build contracts
run: |
Expand All @@ -40,8 +38,6 @@ jobs:

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run tests
run: forge test
Expand All @@ -53,8 +49,6 @@ jobs:

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run coverage
run: forge coverage --report summary --report lcov --ir-minimum
Expand Down
6 changes: 3 additions & 3 deletions test/WormholeL1ERC20Bridge.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ contract ReceiveWormholeMessages is L1ERC20BridgeTest {
function testFuzz_CastVoteOnL1(uint32 forVotes, uint32 againstVotes, uint32 abstainVotes) public {
abstainVotes = 0;
uint96 totalVotes = uint96(forVotes) + againstVotes + abstainVotes; // Add 1 so the user always
// has voting power
// has voting power
if (totalVotes == 0) ++totalVotes;
// Mint and transfer tokens to bridge
l1Erc20.mint(address(this), totalVotes);
Expand All @@ -139,9 +139,9 @@ contract ReceiveWormholeMessages is L1ERC20BridgeTest {
l1Erc20Bridge.setRegisteredSender(L1_CHAIN.wormholeChainId, MOCK_WORMHOLE_SERIALIZED_ADDRESS);

vm.expectEmit();
emit VoteCast(L2_CHAIN.wormholeRelayer, proposalId, forVotes, againstVotes, abstainVotes);
emit VoteCast(L1_CHAIN.wormholeRelayer, proposalId, forVotes, againstVotes, abstainVotes);

vm.prank(L2_CHAIN.wormholeRelayer);
vm.prank(L1_CHAIN.wormholeRelayer);
l1Erc20Bridge.receiveWormholeMessages(
voteCalldata,
new bytes[](0),
Expand Down

0 comments on commit e4df2f6

Please sign in to comment.