ETH_PROJET/contracts/HelloEthSalon.sol
2018-02-01 12:49:21 +01:00

18 lines
No EOL
367 B
Solidity

pragma solidity ^0.4.4;
contract HelloEthSalon {
string message = "I know smart contract testing!!";
function HelloEthSalon() public {
// constructor
}
function SetMessage(string m) public {
require(bytes(m).length > 0);
message = m;
}
function GetMessage() public returns (string) {
return message;
}
}