Function: setNewAdmin(address _newAdmin)
This facilitates changing the owner of the contract.
Inputs
_newAdmin
Control: Fully controlled by the caller.
Constraints: Cannot be zero address.
Impact: Sets the owner variable.
Branches and code coverage
Intended branches
Should be performed in two steps so that the new admin can accept the role. Currently not performed.
Set the
owner
variable to the_newAdmin
parameter.
Negative behavior
Should never be callable by someone other than the owner.