Skip to content

Instantly share code, notes, and snippets.

@himawari2021
Created February 7, 2022 17:40
Embed
What would you like to do?
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