Last active
December 27, 2020 21:40
This file contains hidden or 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