diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 00:40:45 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 02:04:34 +0800 |
commit | e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36 (patch) | |
tree | 58b563fd53b6319a3ada3c5f592c7cb04360a590 /docs/contracts.rst | |
parent | 3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c (diff) | |
download | dexon-solidity-e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36.tar.gz dexon-solidity-e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36.tar.zst dexon-solidity-e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36.zip |
Set 0.5.x specific example code to be compilable with >0.4.99 <0.6.0 (e.g. 0.5.x only)
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r-- | docs/contracts.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst index e6654f90..315d1815 100644 --- a/docs/contracts.rst +++ b/docs/contracts.rst @@ -331,7 +331,7 @@ inheritable properties of contracts and may be overridden by derived contracts. :: - pragma solidity >0.4.24; + pragma solidity >0.4.99 <0.6.0; contract owned { constructor() public { owner = msg.sender; } @@ -500,7 +500,7 @@ The following statements are considered modifying the state: :: - pragma solidity >0.4.24; + pragma solidity >0.4.99 <0.6.0; contract C { function f(uint a, uint b) public view returns (uint) { @@ -545,7 +545,7 @@ In addition to the list of state modifying statements explained above, the follo :: - pragma solidity >0.4.24; + pragma solidity >0.4.99 <0.6.0; contract C { function f(uint a, uint b) public pure returns (uint) { @@ -633,7 +633,7 @@ Like any function, the fallback function can execute complex operations as long :: - pragma solidity >0.4.24; + pragma solidity >0.4.99 <0.6.0; contract Test { // This function is called for all messages sent to @@ -900,7 +900,7 @@ Details are given in the following example. :: - pragma solidity >0.4.24; + pragma solidity >0.4.99 <0.6.0; contract owned { constructor() public { owner = msg.sender; } @@ -1060,7 +1060,7 @@ equivalent to ``constructor() public {}``. For example: :: - pragma solidity >0.4.24; + pragma solidity >0.4.99 <0.6.0; contract A { uint public a; |