Skip to content

Instantly share code, notes, and snippets.

@himawari2021
Created February 7, 2022 17:40
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 himawari2021/108c1608de1e615ff001ab4d44e8101e to your computer and use it in GitHub Desktop.
Save himawari2021/108c1608de1e615ff001ab4d44e8101e to your computer and use it in GitHub Desktop.
MyStrage.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract MyStrage {
string message = "hello";
function set(string memory _message) public {
message = _message;
}
function get() public view returns (string memory){
return message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment