Function: transferFrom(address _from, address _to, uint256 _value)
Transfer a specified amount of tokens from one address to another.
Inputs
_fromControl: Controlled by the user.
Constraints: Cannot be the zero address, and the
_fromaddress must have approved the caller to spend at least_valueamount of tokens.Impact: The address will cost the specified
_valueof tokens.
_toControl: Controlled by the user.
Constraints: Cannot be the zero address.
Impact: The address will receive the specified
_valueof tokens.
_valueControl: Controlled by the user.
Constraints: Must be a nonnegative integer and less than or equal to the
_fromaddress's balance and the allowed amount.Impact: The number of tokens to transfer from the
_fromaddress to the_toaddress.
Branches and code coverage (including function calls)
Intended branches
Successful transfer.
Negative behavior
Insufficient allowance.
Insufficient balance.
Transfer from/to zero address.