Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/common-patterns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -282,7 +282,7 @@ function finishes.

::

pragma solidity ^0.4.11;
pragma solidity ^0.4.22;

contract StateMachine {
enum Stages {
Expand Down
4 changes: 2 additions & 2 deletions docs/contracts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/control-structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions docs/solidity-by-example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ of votes.

::

pragma solidity ^0.4.16;
pragma solidity ^0.4.22;

/// @title Voting with delegation.
contract Ballot {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -388,7 +388,7 @@ high or low invalid bids.

::

pragma solidity ^0.4.21;
pragma solidity ^0.4.22;

contract BlindAuction {
struct Bid {
Expand Down Expand Up @@ -541,7 +541,7 @@ Safe Remote Purchase

::

pragma solidity ^0.4.21;
pragma solidity ^0.4.22;

contract Purchase {
uint public value;
Expand Down
2 changes: 1 addition & 1 deletion docs/structure-of-a-contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion docs/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down