From b0c816e2e36496cc9ac1f9e3ea6457a1f0dc4a63 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 31 Oct 2018 16:50:00 -0500 Subject: [PATCH] Added code example (#33174) --- guide/english/blockchain/smart-contracts/index.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/guide/english/blockchain/smart-contracts/index.md b/guide/english/blockchain/smart-contracts/index.md index ef25a9963c..828b18f7d9 100644 --- a/guide/english/blockchain/smart-contracts/index.md +++ b/guide/english/blockchain/smart-contracts/index.md @@ -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