Created
April 27, 2021 10:03
-
-
Save takana-v/06f95217977eeeae42522f97014fb1c0 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.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