Last active
December 1, 2020 17:58
-
-
Save aunyks/5564ed9a19778acfa14e978c36e3e2f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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