Update introduction-to-smart-contracts.rst

This commit is contained in:
jamesray1 2017-05-10 15:26:17 +10:00 committed by GitHub
parent 1d5c0ce9f4
commit 139fdb36c7

View File

@ -33,7 +33,9 @@ Storage
The first line simply tells that the source code is written for
Solidity version 0.4.0 or anything newer that does not break functionality
(up to, but not including, version 0.5.0). This is to ensure that the
contract does not suddenly behave differently with a new compiler version. For more information about pragma, see [here](https://en.wikipedia.org/wiki/Directive_(programming)).
contract does not suddenly behave differently with a new compiler version. The keyword ``pragma`` is called that way because, in general,
pragmas are instructions for the compiler about how to treat the
source code (e.g. [pragma once](https://en.wikipedia.org/wiki/Pragma_once)). .
A contract in the sense of Solidity is a collection of code (its *functions*) and
data (its *state*) that resides at a specific address on the Ethereum