Added code example (#33174)

This commit is contained in:
Tom
2018-10-31 16:50:00 -05:00
committed by Paul Happ
parent 991e930de4
commit b0c816e2e3

View File

@ -18,3 +18,18 @@ Two of the most common technologies used are :
- Ethereum: generally made with Solidity
- Hyperledger: generally made with Go, or Java
## Hello World Smart Contract
```solidity
pragma solidity ^0.4.24;
contract Hello {
string public message;
function Hello(string initialMessage) public {
message = initialMessage;
}
function setMessage(string newMessage) public {
message = newMessage;
}
}
```
Pulled from https://medium.com/coinmonks/how-to-write-a-simple-smart-contract-25f6d3c1d6db