Merge pull request #3682 from arekssu/bael-1460

Adding solidity example file
This commit is contained in:
Carsten Gräf 2018-02-17 13:29:54 +01:00 committed by GitHub
commit 2afb745b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
pragma solidity ^0.4.0;
contract Greeting {
address creator;
string message;
function Greeting(string _message) {
message = _message;
creator = msg.sender;
}
function greet() constant returns (string) {
return message;
}
function setGreeting(string _message) {
message = _message;
}
}