ETH_PROJET/contracts/HelloEthSalon.sol

18 lines
367 B
Solidity
Raw Normal View History

2018-02-01 11:52:53 +01:00
pragma solidity ^0.4.4;
contract HelloEthSalon {
string message = "I know smart contract testing!!";
2018-02-01 12:49:21 +01:00
function HelloEthSalon() public {
2018-02-01 11:52:53 +01:00
// constructor
}
2018-02-01 12:49:21 +01:00
function SetMessage(string m) public {
require(bytes(m).length > 0);
message = m;
}
function GetMessage() public returns (string) {
2018-02-01 11:52:53 +01:00
return message;
}
}