|
@@ -23,7 +23,7 @@ contract StandardToken is ERC20, BasicToken {
|
|
|
* @param _to address The address which you want to transfer to
|
|
|
* @param _value uint256 the amout of tokens to be transfered
|
|
|
*/
|
|
|
- function transferFrom(address _from, address _to, uint256 _value) {
|
|
|
+ function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
|
|
|
var _allowance = allowed[_from][msg.sender];
|
|
|
|
|
|
// Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
|
|
@@ -33,6 +33,7 @@ contract StandardToken is ERC20, BasicToken {
|
|
|
balances[_from] = balances[_from].sub(_value);
|
|
|
allowed[_from][msg.sender] = _allowance.sub(_value);
|
|
|
Transfer(_from, _to, _value);
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -40,7 +41,7 @@ contract StandardToken is ERC20, BasicToken {
|
|
|
* @param _spender The address which will spend the funds.
|
|
|
* @param _value The amount of tokens to be spent.
|
|
|
*/
|
|
|
- function approve(address _spender, uint256 _value) {
|
|
|
+ function approve(address _spender, uint256 _value) returns (bool) {
|
|
|
|
|
|
// To change the approve amount you first have to reduce the addresses`
|
|
|
// allowance to zero by calling `approve(_spender, 0)` if it is not
|
|
@@ -50,6 +51,7 @@ contract StandardToken is ERC20, BasicToken {
|
|
|
|
|
|
allowed[msg.sender][_spender] = _value;
|
|
|
Approval(msg.sender, _spender, _value);
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
/**
|