Skip to content

Instantly share code, notes, and snippets.

@takana-v
Created April 27, 2021 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takana-v/06f95217977eeeae42522f97014fb1c0 to your computer and use it in GitHub Desktop.
Save takana-v/06f95217977eeeae42522f97014fb1c0 to your computer and use it in GitHub Desktop.
pragma solidity 0.5.4;
contract helloWorld {
string data;
function pureHelloWorld() public pure returns(string memory) {
return "hello world";
}
function readStrData() external view returns(string memory) {
return data;
}
function sendStrData(string memory sendData) public {
data = sendData;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment