18 lines
No EOL
367 B
Solidity
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;
|
|
}
|
|
} |