Skip to content

Instantly share code, notes, and snippets.

@wissalHaji
Last active December 27, 2020 21:40
Show Gist options
  • Save wissalHaji/42612ece626f89f70be28a1d35600185 to your computer and use it in GitHub Desktop.
Save wissalHaji/42612ece626f89f70be28a1d35600185 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.8.0;
contract Greeting {
string public greeting = "hello";
function sayHello() external view returns (string memory) {
return greeting;
}
function updateGreeting(string calldata _greeting) external {
greeting = _greeting;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment