Last active
September 20, 2017 08:24
-
-
Save phramz/d1f12d89217b2842626a910fff1a519c to your computer and use it in GitHub Desktop.
solutions.hamburg | solidity example | DO NOT USE IN PRODUCTION
This file contains hidden or 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
| 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