Skip to content

Instantly share code, notes, and snippets.

@gsans
Created February 25, 2022 15:39
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 gsans/feef1eb3a1aa78a3e2663301731f16e3 to your computer and use it in GitHub Desktop.
Save gsans/feef1eb3a1aa78a3e2663301731f16e3 to your computer and use it in GitHub Desktop.
Helloworld smart contract
// 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