Bug fixes And add Unit Test
This commit is contained in:
parent
a4e84eff45
commit
5caf069681
5 changed files with 5862 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue