Skip to content

Instantly share code, notes, and snippets.

@wissalHaji
Last active December 27, 2020 21:40
// 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