Created
March 13, 2018 10:29
-
-
Save kevinbluer/e9622ce43e5f463f73181e98d9783d2d 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
pragma solidity ^0.4.6; | |
contract HelloWorld { | |
string saySomething; | |
function HelloWorld() { | |
saySomething = "Hello World!"; | |
} | |
function speak() constant returns(string itSays) { | |
return saySomething; | |
} | |
function saySomethingElse(string newSaying) returns(bool success) { | |
saySomething = newSaying; | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment