Created
February 25, 2022 15:39
-
-
Save gsans/feef1eb3a1aa78a3e2663301731f16e3 to your computer and use it in GitHub Desktop.
Helloworld smart contract
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.8.10; | |
contract HelloWorld { | |
string message = "Hello world!"; | |
function set(string memory _msg) public { | |
message = _msg; | |
} | |
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