From ff26ea6c08a400192c5a5fff581a7ce649f717bd Mon Sep 17 00:00:00 2001 From: Denton Liu Date: Fri, 13 May 2016 14:06:02 -0400 Subject: [PATCH] Added space to example code --- docs/introduction-to-smart-contracts.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index cecd6b914..6dd0cf8f6 100644 --- a/docs/introduction-to-smart-contracts.rst +++ b/docs/introduction-to-smart-contracts.rst @@ -20,9 +20,11 @@ Storage contract SimpleStorage { uint storedData; + function set(uint x) { storedData = x; } + function get() constant returns (uint retVal) { return storedData; } @@ -88,10 +90,12 @@ registering with username and password - all you need is an Ethereum keypair. function Coin() { minter = msg.sender; } + function mint(address receiver, uint amount) { if (msg.sender != minter) return; balances[receiver] += amount; } + function send(address receiver, uint amount) { if (balances[msg.sender] < amount) return; balances[msg.sender] -= amount;