Bug fixes And add Unit Test

This commit is contained in:
MrDev023 2018-02-01 12:49:21 +01:00
parent a4e84eff45
commit 5caf069681
5 changed files with 5862 additions and 3 deletions

View file

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