From 1372a565e2fba6a8a03e5fb427007fdb45488183 Mon Sep 17 00:00:00 2001 From: Alex Vargas Date: Fri, 16 Feb 2018 12:01:12 -0800 Subject: [PATCH] Adding solidity example file --- libraries/src/main/resources/Greeting.sol | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libraries/src/main/resources/Greeting.sol diff --git a/libraries/src/main/resources/Greeting.sol b/libraries/src/main/resources/Greeting.sol new file mode 100644 index 0000000000..dde7b36cc3 --- /dev/null +++ b/libraries/src/main/resources/Greeting.sol @@ -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; + } +} \ No newline at end of file