mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
19 lines
371 B
Solidity
19 lines
371 B
Solidity
|
//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;
|
||
|
}
|
||
|
}
|