Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xpdlf1004/30fdb7569ed8e0b8758eac921eb95c00 to your computer and use it in GitHub Desktop.
Save xpdlf1004/30fdb7569ed8e0b8758eac921eb95c00 to your computer and use it in GitHub Desktop.
GoCryptobotCoinERC20.sol
function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment