Add natspec to all remaing contracts, except for vestedToken.sol
This commit is contained in:
committed by
maurelian
parent
1547922b61
commit
f6f91298f0
@ -5,17 +5,17 @@ import './ERC20Basic.sol';
|
||||
import '../SafeMath.sol';
|
||||
|
||||
|
||||
/*
|
||||
* Basic token
|
||||
* Basic version of StandardToken, with no allowances
|
||||
/**
|
||||
* @title Basic token
|
||||
* @dev Basic version of StandardToken, with no allowances
|
||||
*/
|
||||
contract BasicToken is ERC20Basic {
|
||||
using SafeMath for uint;
|
||||
|
||||
mapping(address => uint) balances;
|
||||
|
||||
/*
|
||||
* Fix for the ERC20 short address attack
|
||||
/**
|
||||
* @dev Fix for the ERC20 short address attack
|
||||
*/
|
||||
modifier onlyPayloadSize(uint size) {
|
||||
if(msg.data.length < size + 4) {
|
||||
@ -24,14 +24,24 @@ contract BasicToken is ERC20Basic {
|
||||
_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev transfer token for a specified address
|
||||
* @param _to address The address which you want to transfer to
|
||||
* @param _value uint the amout to be transfered
|
||||
*/
|
||||
function transfer(address _to, uint _value) onlyPayloadSize(2 * 32) {
|
||||
balances[msg.sender] = balances[msg.sender].sub(_value);
|
||||
balances[_to] = balances[_to].add(_value);
|
||||
Transfer(msg.sender, _to, _value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Function to get the balance of the specified address
|
||||
* @param _owner address The address you wish to get the balance from
|
||||
* @return An uint representing the amout owned by the passed address
|
||||
*/
|
||||
function balanceOf(address _owner) constant returns (uint balance) {
|
||||
return balances[_owner];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user