Skip to content

Instantly share code, notes, and snippets.

Created Dec 13, 2016
What would you like to do?
Super simple Ethereum smart contract for testing.
pragma solidity ^0.4.0;
contract Token {
mapping (address => uint) public balances;
function Token() {
balances[msg.sender] = 1000000;
function transfer(address _to, uint _amount) {
if (balances[msg.sender] < _amount) {
balances[msg.sender] -= _amount;
balances[_to] += _amount;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment