From a94686a7e7750842c18680e9f7f7788deb46783d Mon Sep 17 00:00:00 2001 From: Jon Choi Date: Wed, 14 Jun 2017 11:25:45 -0700 Subject: [PATCH] Add prerequisites and correct minor typos. (#598) * It was a bit confusing to hop into this tutorial right away without the context on (1) having installed geth and (2) the smart contract file type / compiler etc. * Couple of minor typos --- views/content/greeter.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/views/content/greeter.md b/views/content/greeter.md index 158d8aeb..b5d3b3f5 100644 --- a/views/content/greeter.md +++ b/views/content/greeter.md @@ -7,10 +7,13 @@ Smart contracts are account holding objects on the ethereum blockchain. They con What can you do with contracts? Well, you can do almost anything really, but for our getting started guide let's do some simple things: To start you will create a classic "Hello World" contract, then you can build your own crypto token to send to whomever you like. Once you've mastered that then you will raise funds through a crowdfunding that, if successful, will supply a radically transparent and democratic organization that will only obey its own citizens, will never swerve away from its constitution and cannot be censored or shut down. And all that in less than 300 lines of code. -So let's start now. - +Before you begin: +[Install the Ethereum CLI](https://ethereum.org/cli) [Learn more about contracts](https://github.com/ethereum/go-ethereum/wiki/Contracts-and-Transactions) +Please confirm that the GUI is closed before entering the `geth` console. +Run `geth` to begin the sync process (this may take a while on the first run). +So let's start now. ### Your first citizen: the greeter @@ -20,10 +23,10 @@ The Greeter is an intelligent digital entity that lives on the blockchain and is contract mortal { - /* Define variable owner of the type address*/ + /* Define variable owner of the type address */ address owner; - /* this function is executed at initialization and sets the owner of the contract */ + /* This function is executed at initialization and sets the owner of the contract */ function mortal() { owner = msg.sender; } /* Function to recover the funds on the contract */ @@ -31,15 +34,15 @@ The Greeter is an intelligent digital entity that lives on the blockchain and is } contract greeter is mortal { - /* define variable greeting of the type string */ + /* Define variable greeting of the type string */ string greeting; - /* this runs when the contract is executed */ + /* This runs when the contract is executed */ function greeter(string _greeting) public { greeting = _greeting; } - /* main function */ + /* Main function */ function greet() constant returns (string) { return greeting; }