Skip to content

Instantly share code, notes, and snippets.

@aunyks
Last active December 1, 2020 17:58
Show Gist options
  • Save aunyks/5564ed9a19778acfa14e978c36e3e2f8 to your computer and use it in GitHub Desktop.
Save aunyks/5564ed9a19778acfa14e978c36e3e2f8 to your computer and use it in GitHub Desktop.
contract MyERCToken {
// Create a table so that we can map addresses
// to the balances associated with them
mapping(address => uint256) balances;
// Owner of this contract
address public owner;
function balanceOf(address _owner) constant returns (uint256 balance) {
// Return the balance for the specific address
return balances[_owner];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment