aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-04-17 01:55:56 +0800
committerGitHub <noreply@github.com>2018-04-17 01:55:56 +0800
commitaf18b4deb8abeb3954639d06aff0f7f3353877bd (patch)
tree999614ba61777529b29697e4dd4c4b5d3bc95b07 /docs
parent8be4cba5703a4baa1a4f2347d98c9f3e5b158cc4 (diff)
parent8a7224683b8fbf7c822922dca35ee2eda8e41d79 (diff)
downloaddexon-solidity-af18b4deb8abeb3954639d06aff0f7f3353877bd.tar
dexon-solidity-af18b4deb8abeb3954639d06aff0f7f3353877bd.tar.gz
dexon-solidity-af18b4deb8abeb3954639d06aff0f7f3353877bd.tar.bz2
dexon-solidity-af18b4deb8abeb3954639d06aff0f7f3353877bd.tar.lz
dexon-solidity-af18b4deb8abeb3954639d06aff0f7f3353877bd.tar.xz
dexon-solidity-af18b4deb8abeb3954639d06aff0f7f3353877bd.tar.zst
dexon-solidity-af18b4deb8abeb3954639d06aff0f7f3353877bd.zip
Merge pull request #3885 from LefterisJP/update_solidity_version_where_revert_with_reason
Docs: Update solidity version for revert with reason
Diffstat (limited to 'docs')
-rw-r--r--docs/common-patterns.rst4
-rw-r--r--docs/contracts.rst4
-rw-r--r--docs/control-structures.rst4
-rw-r--r--docs/solidity-by-example.rst8
-rw-r--r--docs/structure-of-a-contract.rst2
-rw-r--r--docs/types.rst2
6 files changed, 12 insertions, 12 deletions
diff --git a/docs/common-patterns.rst b/docs/common-patterns.rst
index 233bdc4e..739e136f 100644
--- a/docs/common-patterns.rst
+++ b/docs/common-patterns.rst
@@ -130,7 +130,7 @@ restrictions highly readable.
::
- pragma solidity ^0.4.11;
+ pragma solidity ^0.4.22;
contract AccessRestriction {
// These will be assigned at the construction
@@ -282,7 +282,7 @@ function finishes.
::
- pragma solidity ^0.4.11;
+ pragma solidity ^0.4.22;
contract StateMachine {
enum Stages {
diff --git a/docs/contracts.rst b/docs/contracts.rst
index a9650531..a1f2895c 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -301,7 +301,7 @@ inheritable properties of contracts and may be overridden by derived contracts.
::
- pragma solidity ^0.4.11;
+ pragma solidity ^0.4.22;
contract owned {
function owned() public { owner = msg.sender; }
@@ -1215,7 +1215,7 @@ more advanced example to implement a set).
::
- pragma solidity ^0.4.16;
+ pragma solidity ^0.4.22;
library Set {
// We define a new struct datatype that will be used to
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 879e26f7..f3c351dd 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -477,7 +477,7 @@ a message string for ``require``, but not for ``assert``.
::
- pragma solidity ^0.4.0;
+ pragma solidity ^0.4.22;
contract Sharer {
function sendHalf(address addr) public payable returns (uint balance) {
@@ -524,7 +524,7 @@ The following example shows how an error string can be used together with revert
::
- pragma solidity ^0.4.0;
+ pragma solidity ^0.4.22;
contract VendingMachine {
function buy(uint amount) payable {
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index 3cbfcd66..546767e4 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -36,7 +36,7 @@ of votes.
::
- pragma solidity ^0.4.16;
+ pragma solidity ^0.4.22;
/// @title Voting with delegation.
contract Ballot {
@@ -225,7 +225,7 @@ activate themselves.
::
- pragma solidity ^0.4.21;
+ pragma solidity ^0.4.22;
contract SimpleAuction {
// Parameters of the auction. Times are either
@@ -388,7 +388,7 @@ high or low invalid bids.
::
- pragma solidity ^0.4.21;
+ pragma solidity ^0.4.22;
contract BlindAuction {
struct Bid {
@@ -541,7 +541,7 @@ Safe Remote Purchase
::
- pragma solidity ^0.4.21;
+ pragma solidity ^0.4.22;
contract Purchase {
uint public value;
diff --git a/docs/structure-of-a-contract.rst b/docs/structure-of-a-contract.rst
index 9e5eacbb..d57f1703 100644
--- a/docs/structure-of-a-contract.rst
+++ b/docs/structure-of-a-contract.rst
@@ -62,7 +62,7 @@ Function modifiers can be used to amend the semantics of functions in a declarat
::
- pragma solidity ^0.4.11;
+ pragma solidity ^0.4.22;
contract Purchase {
address public seller;
diff --git a/docs/types.rst b/docs/types.rst
index cf8f91be..5c20dc67 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -470,7 +470,7 @@ Example that shows how to use internal function types::
Another example that uses external function types::
- pragma solidity ^0.4.21;
+ pragma solidity ^0.4.22;
contract Oracle {
struct Request {