Skip to content

Instantly share code, notes, and snippets.

@phramz
Last active September 20, 2017 08:24
Show Gist options
  • Select an option

  • Save phramz/d1f12d89217b2842626a910fff1a519c to your computer and use it in GitHub Desktop.

Select an option

Save phramz/d1f12d89217b2842626a910fff1a519c to your computer and use it in GitHub Desktop.
solutions.hamburg | solidity example | DO NOT USE IN PRODUCTION
pragma solidity ^0.4.13;
contract HelloWorld {
event Greeting (
address indexed from,
string indexed name,
string message
);
function HelloWorld() {}
function hello(string _name) external {
Greeting(msg.sender, _name, "Hi! :D");
}
function add(uint256 a, uint256 b) external constant returns (uint256 result) {
result = a + b;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment