Skip to content

Instantly share code, notes, and snippets.

@kevinbluer
Created March 13, 2018 10:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinbluer/e9622ce43e5f463f73181e98d9783d2d to your computer and use it in GitHub Desktop.
Save kevinbluer/e9622ce43e5f463f73181e98d9783d2d to your computer and use it in GitHub Desktop.
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