Function: approve(address _spender, uint256 _amount)
Allows approving allowances for transferring tokens.
Inputs
_spenderControl: Fully controlled by the caller.
Constraints: None.
Impact: The account that will be allowed to transfer tokens.
_amountControl: Fully controlled by the caller.
Constraints: None.
Impact: The amount of tokens to be allowed to be transferred.
Branches and code coverage (including function calls)
Intended branches
Sets the allowance of
_spenderto_amountfor themsg.sender.Check that
_spenderand_ownerare not the zero address (in_approve).
Negative behavior
Should not allow approving tokens on behalf of others.