Skip to content

Instantly share code, notes, and snippets.

@SaifRehman
Created July 14, 2018 00:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SaifRehman/aa733dec9371c3fadb68dd814404f022 to your computer and use it in GitHub Desktop.
Save SaifRehman/aa733dec9371c3fadb68dd814404f022 to your computer and use it in GitHub Desktop.
solidity
pragma solidity ^0.4.18;
contract Contract {
function set(string _value) public {
value = _value;
}
function get() public constant returns (string) {
return value;
}
string public value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment