Skip to content

Commit

Permalink
Fix CI foundry tests (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev authored May 15, 2023
1 parent a8fe93c commit 4af3322
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

env:
FOUNDRY_PROFILE: ci
FORK_RPC_URL_MAINNET: ${{ secrets.FORK_RPC_URL_MAINNET }}
FORK_RPC_URL_OPTIMISM: ${{ secrets.FORK_RPC_URL_OPTIMISM }}
FORK_RPC_URL_POLYGON: ${{ secrets.FORK_RPC_URL_POLYGON }}

jobs:
lint:
Expand Down
5 changes: 3 additions & 2 deletions test/zkbob/ZkBobPool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,14 @@ abstract contract AbstractZkBobPoolTest is AbstractMainnetForkTest {
vm.expectRevert("ZkBobAccounting: single direct deposit cap exceeded");
_transferAndCall(15 ether, user2, zkAddress);

ZkAddress.ZkAddress memory parsedZkAddress = ZkAddress.parseZkAddress(zkAddress, 0);
vm.expectEmit(true, true, false, true);
emit SubmitDirectDeposit(user1, 0, user2, ZkAddress.parseZkAddress(zkAddress, 0), 9.9 gwei);
emit SubmitDirectDeposit(user1, 0, user2, parsedZkAddress, 9.9 gwei);
_transferAndCall(10 ether, user2, zkAddress);

IERC20(token).approve(address(queue), 10 ether);
vm.expectEmit(true, true, false, true);
emit SubmitDirectDeposit(user1, 1, user2, ZkAddress.parseZkAddress(zkAddress, 0), 9.9 gwei);
emit SubmitDirectDeposit(user1, 1, user2, parsedZkAddress, 9.9 gwei);
queue.directDeposit(user2, 10 ether, zkAddress);

vm.expectRevert("ZkBobAccounting: daily user direct deposit cap exceeded");
Expand Down

0 comments on commit 4af3322

Please sign in to comment.