Skip to content

Commit

Permalink
Updated Test
Browse files Browse the repository at this point in the history
  • Loading branch information
remedcu committed Feb 10, 2024
1 parent 68d54d8 commit 69c9dfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/split.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity 0.8.23;

import "forge-std/Test.sol";
import "../src/Splitter.sol";
Expand Down Expand Up @@ -60,7 +60,7 @@ contract SplitterTest is Test {
}

function testSplitZeroAddress() public {
vm.expectRevert();
vm.expectRevert(bytes4(keccak256("ZeroAddressNotAllowed()")));
vm.prank(alice);
splitter.split{ value: amount }(address(0), address(0));
}
Expand Down
4 changes: 2 additions & 2 deletions test/withdraw.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity 0.8.23;

import "forge-std/Test.sol";
import "../src/Splitter.sol";
Expand Down Expand Up @@ -81,7 +81,7 @@ contract SplitterTest is Test {
}

function testWithdrawZero() public {
vm.expectRevert();
vm.expectRevert(bytes4(keccak256("ZeroAmountNotAllowed()")));
vm.prank(bob);
splitter.withdraw(0);
}
Expand Down

0 comments on commit 69c9dfe

Please sign in to comment.