Skip to content

Commit

Permalink
test: fix transfer ownership fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
amarinkovic committed Dec 24, 2024
1 parent 0fd9e46 commit 449ca12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/T03NaymsOwnership.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ contract T03NaymsOwnershipTest is D03ProtocolDefaults, MockAccounts {
function testFuzz_TransferOwnership(address newOwner, address notSysAdmin, address anotherSysAdmin) public {
vm.assume(newOwner != anotherSysAdmin && newOwner != account0 && newOwner != address(0) && anotherSysAdmin != address(0));
vm.assume(anotherSysAdmin != address(0));
vm.assume(!nayms.isInGroup(newOwner._getIdForAddress(), systemContext, LC.GROUP_SYSTEM_MANAGERS));

bytes32 notSysAdminId = LibHelpers._getIdForAddress(address(notSysAdmin));
// note: for this test, assume that the notSysAdmin address is not a system admin
vm.assume(!nayms.isInGroup(notSysAdminId, systemContext, LC.GROUP_SYSTEM_ADMINS));
vm.assume(!nayms.isInGroup(notSysAdmin._getIdForAddress(), systemContext, LC.GROUP_SYSTEM_ADMINS));

vm.label(newOwner, "newOwner");
vm.label(notSysAdmin, "notSysAdmin");
Expand Down

0 comments on commit 449ca12

Please sign in to comment.