aboutsummaryrefslogtreecommitdiffstats
path: root/std/StandardToken.sol
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-15 21:36:05 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-14 22:58:04 +0800
commita02cf83d86489f5d9c9439c79e27fcecb5c5ddb4 (patch)
tree6b523be71cce64075a0f027ebe3c0764dceceb7b /std/StandardToken.sol
parent5b5367dc1237634886a8ccf1029d95b83a0d8e63 (diff)
downloaddexon-solidity-a02cf83d86489f5d9c9439c79e27fcecb5c5ddb4.tar
dexon-solidity-a02cf83d86489f5d9c9439c79e27fcecb5c5ddb4.tar.gz
dexon-solidity-a02cf83d86489f5d9c9439c79e27fcecb5c5ddb4.tar.bz2
dexon-solidity-a02cf83d86489f5d9c9439c79e27fcecb5c5ddb4.tar.lz
dexon-solidity-a02cf83d86489f5d9c9439c79e27fcecb5c5ddb4.tar.xz
dexon-solidity-a02cf83d86489f5d9c9439c79e27fcecb5c5ddb4.tar.zst
dexon-solidity-a02cf83d86489f5d9c9439c79e27fcecb5c5ddb4.zip
Update std to contain visibility specifiers
Diffstat (limited to 'std/StandardToken.sol')
-rw-r--r--std/StandardToken.sol14
1 files changed, 7 insertions, 7 deletions
diff --git a/std/StandardToken.sol b/std/StandardToken.sol
index 51f925e0..2986cb56 100644
--- a/std/StandardToken.sol
+++ b/std/StandardToken.sol
@@ -8,24 +8,24 @@ contract StandardToken is Token {
mapping (address =>
mapping (address => uint256)) m_allowance;
- function StandardToken(address _initialOwner, uint256 _supply) {
+ function StandardToken(address _initialOwner, uint256 _supply) public {
supply = _supply;
balance[_initialOwner] = _supply;
}
- function balanceOf(address _account) constant returns (uint) {
+ function balanceOf(address _account) constant public returns (uint) {
return balance[_account];
}
- function totalSupply() constant returns (uint) {
+ function totalSupply() constant public returns (uint) {
return supply;
}
- function transfer(address _to, uint256 _value) returns (bool success) {
+ function transfer(address _to, uint256 _value) public returns (bool success) {
return doTransfer(msg.sender, _to, _value);
}
- function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
+ function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
if (m_allowance[_from][msg.sender] >= _value) {
if (doTransfer(_from, _to, _value)) {
m_allowance[_from][msg.sender] -= _value;
@@ -47,13 +47,13 @@ contract StandardToken is Token {
}
}
- function approve(address _spender, uint256 _value) returns (bool success) {
+ function approve(address _spender, uint256 _value) public returns (bool success) {
m_allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
- function allowance(address _owner, address _spender) constant returns (uint256) {
+ function allowance(address _owner, address _spender) constant public returns (uint256) {
return m_allowance[_owner][_spender];
}
}