From ebeb6e0e05aa476298b1131b6fd794f47612a00f Mon Sep 17 00:00:00 2001 From: wcgcyx Date: Tue, 13 Feb 2024 09:45:42 +1000 Subject: [PATCH] Fix test --- test/fuzz/child/ChildERC20.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fuzz/child/ChildERC20.t.sol b/test/fuzz/child/ChildERC20.t.sol index 33faba5d..cb55e668 100644 --- a/test/fuzz/child/ChildERC20.t.sol +++ b/test/fuzz/child/ChildERC20.t.sol @@ -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"); @@ -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);