aboutsummaryrefslogtreecommitdiffstats
path: root/docs/structure-of-a-contract.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-26 03:04:13 +0800
committerGitHub <noreply@github.com>2018-09-26 03:04:13 +0800
commit56eb9dd47fb413f243f89f5010badeccba0fbce9 (patch)
tree8406ab12c52b9de8669713856198faed10303ec4 /docs/structure-of-a-contract.rst
parentfc6eee02806ad007992c93cd90f7ce7bdd28556c (diff)
parente3e9ce53d7c8d5c1228ad7165660c8cb014b0f36 (diff)
downloaddexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar
dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.gz
dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.bz2
dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.lz
dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.xz
dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.zst
dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.zip
Merge pull request #4193 from ethereum/050-version
Set version to 0.5.0-develop
Diffstat (limited to 'docs/structure-of-a-contract.rst')
-rw-r--r--docs/structure-of-a-contract.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/structure-of-a-contract.rst b/docs/structure-of-a-contract.rst
index d8bc51b8..582e5338 100644
--- a/docs/structure-of-a-contract.rst
+++ b/docs/structure-of-a-contract.rst
@@ -26,7 +26,7 @@ storage.
::
- pragma solidity ^0.4.0;
+ pragma solidity >=0.4.0 <0.6.0;
contract SimpleStorage {
uint storedData; // State variable
@@ -46,7 +46,7 @@ Functions are the executable units of code within a contract.
::
- pragma solidity ^0.4.0;
+ pragma solidity >=0.4.0 <0.6.0;
contract SimpleAuction {
function bid() public payable { // Function
@@ -68,7 +68,7 @@ Function modifiers can be used to amend the semantics of functions in a declarat
::
- pragma solidity ^0.4.22;
+ pragma solidity >=0.4.22 <0.6.0;
contract Purchase {
address public seller;
@@ -95,7 +95,7 @@ Events are convenience interfaces with the EVM logging facilities.
::
- pragma solidity ^0.4.21;
+ pragma solidity >=0.4.21 <0.6.0;
contract SimpleAuction {
event HighestBidIncreased(address bidder, uint amount); // Event
@@ -119,7 +119,7 @@ Structs are custom defined types that can group several variables (see
::
- pragma solidity ^0.4.0;
+ pragma solidity >=0.4.0 <0.6.0;
contract Ballot {
struct Voter { // Struct
@@ -140,7 +140,7 @@ Enums can be used to create custom types with a finite set of 'constant values'
::
- pragma solidity ^0.4.0;
+ pragma solidity >=0.4.0 <0.6.0;
contract Purchase {
enum State { Created, Locked, Inactive } // Enum