Files
excel-download/blog/dapp/contracts/HelloWorld.sol
2021-10-28 15:39:03 +09:00

20 lines
396 B
Solidity

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
contract HelloWorld {
string public greeting;
constructor(string memory _greeting) {
greeting = _greeting;
}
function setGreeting(string memory _greeting) public{
greeting = _greeting;
}
function say() public view returns(string memory){
return greeting;
}
}