|
|
|
@ -14,7 +14,7 @@ import './ERC20.sol'; |
|
|
|
|
*/ |
|
|
|
|
contract StandardToken is ERC20, BasicToken { |
|
|
|
|
|
|
|
|
|
mapping (address => mapping (address => uint256)) allowed; |
|
|
|
|
mapping (address => mapping (address => uint256)) internal allowed; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -70,15 +70,13 @@ contract StandardToken is ERC20, BasicToken { |
|
|
|
|
* the first transaction is mined) |
|
|
|
|
* From MonolithDAO Token.sol |
|
|
|
|
*/ |
|
|
|
|
function increaseApproval (address _spender, uint _addedValue) |
|
|
|
|
returns (bool success) { |
|
|
|
|
function increaseApproval (address _spender, uint _addedValue) public returns (bool success) { |
|
|
|
|
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); |
|
|
|
|
Approval(msg.sender, _spender, allowed[msg.sender][_spender]); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function decreaseApproval (address _spender, uint _subtractedValue) |
|
|
|
|
returns (bool success) { |
|
|
|
|
function decreaseApproval (address _spender, uint _subtractedValue) public returns (bool success) { |
|
|
|
|
uint oldValue = allowed[msg.sender][_spender]; |
|
|
|
|
if (_subtractedValue > oldValue) { |
|
|
|
|
allowed[msg.sender][_spender] = 0; |
|
|
|
|