Function: approve(address spender, uint256 amount)
This allows msg.sender to approve another address to spend tokens on their behalf.
Inputs
spenderControl: Fully controlled by the caller.
Constraints: None.
Impact: The address to approve to spend tokens on behalf of
msg.sender.
amountControl: Fully controlled by the caller.
Constraints: None.
Impact: The amount of tokens to approve to spend on behalf of
msg.sender.
Branches and code coverage (including function calls)
Intended branches
Increase the allowance of
msg.senderfor spender by amount.
Negative behavior
Should not allow someone else to edit the allowance of others.