The transferOwnership
function in the Ownable
contract allows the current owner to transfer ownership of the contract to a new address. It verifies that the caller is the current owner and ensures that the new owner's address is not zero before executing the transfer.
newOwner
(address
): The address of the new owner to whom the contract ownership will be transferred.