aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-03-08 01:13:11 +0800
committerGitHub <noreply@github.com>2018-03-08 01:13:11 +0800
commitc1bf6fb96f84aa7a8b4b380b7e6133bbf93520e8 (patch)
tree59be39a88b913ce9836b2e83b3c777aecf9dd1d4 /docs
parentbd7bc7c473d94f48aaab91d7a6f20c62fc467ac5 (diff)
parent66ee9aa2f1d5af5dbabd6699e98935261d49558c (diff)
downloaddexon-solidity-c1bf6fb96f84aa7a8b4b380b7e6133bbf93520e8.tar.gz
dexon-solidity-c1bf6fb96f84aa7a8b4b380b7e6133bbf93520e8.tar.zst
dexon-solidity-c1bf6fb96f84aa7a8b4b380b7e6133bbf93520e8.zip
Merge pull request #3634 from ethereum/useCorrectVersionForEmit
Use 0.4.21 pragma for documentation that uses "emit".
Diffstat (limited to 'docs')
-rw-r--r--docs/introduction-to-smart-contracts.rst2
-rw-r--r--docs/solidity-by-example.rst6
-rw-r--r--docs/structure-of-a-contract.rst2
-rw-r--r--docs/types.rst2
4 files changed, 6 insertions, 6 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst
index 11e07292..56f0fe3e 100644
--- a/docs/introduction-to-smart-contracts.rst
+++ b/docs/introduction-to-smart-contracts.rst
@@ -80,7 +80,7 @@ registering with username and password - all you need is an Ethereum keypair.
::
- pragma solidity ^0.4.20; // should actually be 0.4.21
+ pragma solidity ^0.4.21;
contract Coin {
// The keyword "public" makes those variables
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index 57556fa5..27fefd49 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -219,7 +219,7 @@ activate themselves.
::
- pragma solidity ^0.4.20; // should actually be 0.4.21
+ pragma solidity ^0.4.21;
contract SimpleAuction {
// Parameters of the auction. Times are either
@@ -376,7 +376,7 @@ high or low invalid bids.
::
- pragma solidity ^0.4.20; // should actually be 0.4.21
+ pragma solidity ^0.4.21;
contract BlindAuction {
struct Bid {
@@ -529,7 +529,7 @@ Safe Remote Purchase
::
- pragma solidity ^0.4.20; // should actually be 0.4.21
+ pragma solidity ^0.4.21;
contract Purchase {
uint public value;
diff --git a/docs/structure-of-a-contract.rst b/docs/structure-of-a-contract.rst
index 4a0873df..df40b1d0 100644
--- a/docs/structure-of-a-contract.rst
+++ b/docs/structure-of-a-contract.rst
@@ -86,7 +86,7 @@ Events are convenience interfaces with the EVM logging facilities.
::
- pragma solidity ^0.4.20; // should actually be 0.4.21
+ pragma solidity ^0.4.21;
contract SimpleAuction {
event HighestBidIncreased(address bidder, uint amount); // Event
diff --git a/docs/types.rst b/docs/types.rst
index 3611bc3e..e704687e 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.20; // should actually be 0.4.21
+ pragma solidity ^0.4.21;
contract Oracle {
struct Request {