Skip to content

Commit

Permalink
Merge pull request #460 from dmx374/patch-3
Browse files Browse the repository at this point in the history
Add explicit visibility
  • Loading branch information
maraoz authored Sep 22, 2017
2 parents 725ed40 + 3733c06 commit 158a7a8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions contracts/token/StandardToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;


/**
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 158a7a8

Please # to comment.