@@ -23,7 +23,7 @@ unused parameters can be omitted.
23
23
For example, if you want your contract to accept one kind of external call
24
24
with two integers, you would use something like the following::
25
25
26
- pragma solidity >=0.4.16 <0.7 .0;
26
+ pragma solidity >=0.4.16 <0.8 .0;
27
27
28
28
contract Simple {
29
29
uint sum;
@@ -55,7 +55,7 @@ Function return variables are declared with the same syntax after the
55
55
For example, suppose you want to return two results: the sum and the product of
56
56
two integers passed as function parameters, then you use something like::
57
57
58
- pragma solidity >=0.4.16 <0.7 .0;
58
+ pragma solidity >=0.4.16 <0.8 .0;
59
59
60
60
contract Simple {
61
61
function arithmetic(uint _a, uint _b)
@@ -79,7 +79,7 @@ or you can provide return values
79
79
(either a single or :ref: `multiple ones<multi-return> `) directly with the ``return ``
80
80
statement::
81
81
82
- pragma solidity >=0.4.16 <0.7 .0;
82
+ pragma solidity >=0.4.16 <0.8 .0;
83
83
84
84
contract Simple {
85
85
function arithmetic(uint _a, uint _b)
@@ -142,7 +142,7 @@ The following statements are considered modifying the state:
142
142
143
143
::
144
144
145
- pragma solidity >=0.5.0 <0.7 .0;
145
+ pragma solidity >=0.5.0 <0.8 .0;
146
146
147
147
contract C {
148
148
function f(uint a, uint b) public view returns (uint) {
@@ -187,7 +187,7 @@ In addition to the list of state modifying statements explained above, the follo
187
187
188
188
::
189
189
190
- pragma solidity >=0.5.0 <0.7 .0;
190
+ pragma solidity >=0.5.0 <0.8 .0;
191
191
192
192
contract C {
193
193
function f(uint a, uint b) public pure returns (uint) {
@@ -280,7 +280,7 @@ Below you can see an example of a Sink contract that uses function ``receive``.
280
280
281
281
::
282
282
283
- pragma solidity ^ 0.6.0;
283
+ pragma solidity >= 0.6.0 <0.8 .0;
284
284
285
285
// This contract keeps all Ether sent to it with no way
286
286
// to get it back.
@@ -335,7 +335,7 @@ operations as long as there is enough gas passed on to it.
335
335
336
336
::
337
337
338
- pragma solidity ^ 0.6.0;
338
+ pragma solidity >= 0.6.0 <0.8 .0;
339
339
340
340
contract Test {
341
341
// This function is called for all messages sent to
@@ -407,7 +407,7 @@ The following example shows overloading of the function
407
407
408
408
::
409
409
410
- pragma solidity >=0.4.16 <0.7 .0;
410
+ pragma solidity >=0.4.16 <0.8 .0;
411
411
412
412
contract A {
413
413
function f(uint _in) public pure returns (uint out) {
@@ -425,7 +425,7 @@ externally visible functions differ by their Solidity types but not by their ext
425
425
426
426
::
427
427
428
- pragma solidity >=0.4.16 <0.7 .0;
428
+ pragma solidity >=0.4.16 <0.8 .0;
429
429
430
430
// This will not compile
431
431
contract A {
@@ -458,7 +458,7 @@ candidate, resolution fails.
458
458
459
459
::
460
460
461
- pragma solidity >=0.4.16 <0.7 .0;
461
+ pragma solidity >=0.4.16 <0.8 .0;
462
462
463
463
contract A {
464
464
function f(uint8 _in) public pure returns (uint8 out) {
0 commit comments