Function: transferRights(address _newOwner)
This function is used to transfer the rights of the allocation to a new owner.
Inputs
_newOwnerControl: Arbitrary.
Constraints: None.
Impact: Address of the new owner to transfer the rights of the allocation contract.
Branches and code coverage
Intended branches
Add the previous owner to
prevOwners.Update the
granteeof the allocation contract.
Negative behavior
Revert if the caller is not the grantee.
Revert if the
_newOwneris the zero address.Revert if the
transferableis false.