aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Entriken <github.com@phor.net>2019-01-08 05:29:36 +0800
committerchriseth <chris@ethereum.org>2019-01-10 18:34:58 +0800
commit52fd20e98c140fbc9d177ebc28d366e7da6c3876 (patch)
treed2e90cb60ac5286196de729878ab2561ef32a922
parent950e193642f46f9e0f66b639e8dda059d149635b (diff)
downloaddexon-solidity-52fd20e98c140fbc9d177ebc28d366e7da6c3876.tar.gz
dexon-solidity-52fd20e98c140fbc9d177ebc28d366e7da6c3876.tar.zst
dexon-solidity-52fd20e98c140fbc9d177ebc28d366e7da6c3876.zip
Use latest version in code snippets.
-rw-r--r--README.md4
-rw-r--r--docs/index.rst2
-rw-r--r--docs/layout-of-source-files.rst8
3 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md
index c7065c09..959fefc2 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,8 @@ that run on the Ethereum Virtual Machine. Smart contracts are programs that are
network where nobody has special authority over the execution and thus they allow to implement tokens of value,
ownership, voting and other kinds of logics.
+When deploying contracts, you should use the latest released version of Solidity. This is because breaking changes as well as new features and bug fixes are introduced regularly. We currently use a 0.x version number [to indicate this fast pace of change](https://semver.org/#spec-item-4).
+
## Build and Install
Instructions about how to build and install the Solidity compiler can be found in the [Solidity documentation](https://solidity.readthedocs.io/en/latest/installing-solidity.html#building-from-source)
@@ -29,7 +31,7 @@ Instructions about how to build and install the Solidity compiler can be found i
A "Hello World" program in Solidity is of even less use than in other languages, but still:
```
-pragma solidity ^0.4.16;
+pragma solidity ^0.5.0;
contract HelloWorld {
function helloWorld() external pure returns (string memory) {
diff --git a/docs/index.rst b/docs/index.rst
index ed931163..16745c07 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -19,6 +19,8 @@ user-defined types among other features.
With Solidity you can create contracts for uses such as voting, crowdfunding, blind auctions,
and multi-signature wallets.
+When deploying contracts, you should use the latest released version of Solidity. This is because breaking changes as well as new features and bug fixes are introduced regularly. We currently use a 0.x version number [to indicate this fast pace of change](https://semver.org/#spec-item-4).
+
Language Documentation
----------------------
diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst
index fa36fc6a..235f4dd4 100644
--- a/docs/layout-of-source-files.rst
+++ b/docs/layout-of-source-files.rst
@@ -37,12 +37,12 @@ breaking changes, those releases will always have versions of the form
The version pragma is used as follows::
- pragma solidity ^0.4.0;
+ pragma solidity ^0.5.2;
-Such a source file will not compile with a compiler earlier than version 0.4.0
-and it will also not work on a compiler starting from version 0.5.0 (this
+Such a source file will not compile with a compiler earlier than version 0.5.2
+and it will also not work on a compiler starting from version 0.6.0 (this
second condition is added by using ``^``). The idea behind this is that
-there will be no breaking changes until version ``0.5.0``, so we can always
+there will be no breaking changes until version ``0.6.0``, so we can always
be sure that our code will compile the way we intended it to. We do not fix
the exact version of the compiler, so that bugfix releases are still possible.