0g-chain/tests/e2e/contracts/greeter/Greeter.sol

19 lines
371 B
Solidity
Raw Normal View History

//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.3;
contract Greeter {
string greeting;
constructor(string memory _greeting) {
greeting = _greeting;
}
function greet() public view returns (string memory) {
return greeting;
}
function setGreeting(string memory _greeting) public {
greeting = _greeting;
}
}