Skip to content

Commit e63aa03

Browse files
authored
Merge pull request #5757 from fulldecent/feature-latest-version
Recommend to use latest version
2 parents 950e193 + 52fd20e commit e63aa03

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ that run on the Ethereum Virtual Machine. Smart contracts are programs that are
1919
network where nobody has special authority over the execution and thus they allow to implement tokens of value,
2020
ownership, voting and other kinds of logics.
2121

22+
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).
23+
2224
## Build and Install
2325

2426
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
2931
A "Hello World" program in Solidity is of even less use than in other languages, but still:
3032

3133
```
32-
pragma solidity ^0.4.16;
34+
pragma solidity ^0.5.0;
3335
3436
contract HelloWorld {
3537
function helloWorld() external pure returns (string memory) {

docs/index.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ user-defined types among other features.
1919
With Solidity you can create contracts for uses such as voting, crowdfunding, blind auctions,
2020
and multi-signature wallets.
2121

22+
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).
23+
2224
Language Documentation
2325
----------------------
2426

docs/layout-of-source-files.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ breaking changes, those releases will always have versions of the form
3737

3838
The version pragma is used as follows::
3939

40-
pragma solidity ^0.4.0;
40+
pragma solidity ^0.5.2;
4141

42-
Such a source file will not compile with a compiler earlier than version 0.4.0
43-
and it will also not work on a compiler starting from version 0.5.0 (this
42+
Such a source file will not compile with a compiler earlier than version 0.5.2
43+
and it will also not work on a compiler starting from version 0.6.0 (this
4444
second condition is added by using ``^``). The idea behind this is that
45-
there will be no breaking changes until version ``0.5.0``, so we can always
45+
there will be no breaking changes until version ``0.6.0``, so we can always
4646
be sure that our code will compile the way we intended it to. We do not fix
4747
the exact version of the compiler, so that bugfix releases are still possible.
4848

0 commit comments

Comments
 (0)