Skip to content

Instantly share code, notes, and snippets.

@smulube
Created August 23, 2015 12:27
Show Gist options
  • Save smulube/dac1afd3a5e3042530e2 to your computer and use it in GitHub Desktop.
Save smulube/dac1afd3a5e3042530e2 to your computer and use it in GitHub Desktop.
var source = 'contract metaCoin { mapping (address => uint) public balances; function metaCoin() { balances[msg.sender] = 10000; } function sendCoin(address receiver, uint amount) returns(bool sufficient) { if (balances[msg.sender] < amount) return false; balances[msg.sender] -= amount; balances[receiver] += amount; return true; } }';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment