Skip to content

Instantly share code, notes, and snippets.

@dev-yohan
Created September 27, 2018 22:52
Show Gist options
  • Save dev-yohan/0f0e8ab1089c15ca7a00f36c21d3649e to your computer and use it in GitHub Desktop.
Save dev-yohan/0f0e8ab1089c15ca7a00f36c21d3649e to your computer and use it in GitHub Desktop.
Solidity hello_world
pragma solidity ^0.4.25;
contract HELLO_WORLD {
string message;
constructor () public {
message = 'Hello !!';
}
function setName(string _message) public {
message = _message;
}
function getName() public view returns(string) {
return message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment