Good day,
ERC20 specify the following 2 functions as its most important ones:
function balanceOf(address _owner) constant returns (uint256 balance){}
function transfer(address _to, uint256 _value) returns (bool success){}
But the balanceOf function is nothing more than a fancy way to access the info stored inside a simple mapping array. Why not just set the balances mapping array to be public and be done with it?
mapping (address=>uint) public balanceOf;
I feel as if I'm missing something here. As always, your help is appreciated.
constant returns
? It might change or am I getting something wrong?