test: add exception for address 0 on fuzz tests (#234)

This commit is contained in:
Felipe Mendes 2023-04-20 10:10:47 -03:00 committed by GitHub
parent eb2a765803
commit 3fbbb08cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ contract Test_FleekERC721_ENS is Test_FleekERC721_Base {
function testFuzz_cannotMintIfNotENSOwner(address account) public {
vm.assume(deployer != account);
vm.assume(account != address(0));
vm.prank(account);
expectRevertWithMustBeENSOwner();
mintDefault(account);
@ -23,6 +24,7 @@ contract Test_FleekERC721_ENS is Test_FleekERC721_Base {
function testFuzz_cannotSetTokenENSIfNotENSOwner(address account) public {
vm.assume(deployer != account);
vm.assume(account != address(0));
mintDefault(account);
vm.prank(account);