|
@@ -20,6 +20,8 @@ contract BasicToken is ERC20Basic {
|
|
* @param _value The amount to be transferred.
|
|
* @param _value The amount to be transferred.
|
|
*/
|
|
*/
|
|
function transfer(address _to, uint256 _value) returns (bool) {
|
|
function transfer(address _to, uint256 _value) returns (bool) {
|
|
|
|
+ require(_to != address(0));
|
|
|
|
+
|
|
balances[msg.sender] = balances[msg.sender].sub(_value);
|
|
balances[msg.sender] = balances[msg.sender].sub(_value);
|
|
balances[_to] = balances[_to].add(_value);
|
|
balances[_to] = balances[_to].add(_value);
|
|
Transfer(msg.sender, _to, _value);
|
|
Transfer(msg.sender, _to, _value);
|