Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Feb 12, 2024
1 parent ce85db3 commit ebeb6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fuzz/child/ChildERC20.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract ChildERC20Test is Test {
}

function testFuzz_Mint(address user, uint256 amount) public {
vm.assume(user != address(0));
vm.assume(user != address(0) && user != address(this));

assertEq(childToken.balanceOf(user), 0, "User should not have balance before mint");

Expand All @@ -32,7 +32,7 @@ contract ChildERC20Test is Test {
}

function testFuzz_Burn(address user, uint256 balance, uint256 burnAmt) public {
vm.assume(user != address(0));
vm.assume(user != address(0) && user != address(this));
vm.assume(balance < type(uint256).max);
vm.assume(burnAmt < balance);

Expand Down

0 comments on commit ebeb6e0

Please sign in to comment.