Last active
December 27, 2020 21:40
-
-
Save wissalHaji/42612ece626f89f70be28a1d35600185 to your computer and use it in GitHub Desktop.
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: 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