aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.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/frequently-asked-questions.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/frequently-asked-questions.rst')
-rw-r--r--docs/frequently-asked-questions.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index d2b7de9c..7b7dd0b0 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -57,7 +57,7 @@ array in the return statement. Pretty cool, huh?
Example::
- pragma solidity ^0.4.16;
+ pragma solidity >=0.4.16 <0.6.0;
contract C {
function f() public pure returns (uint8[5] memory) {
@@ -87,7 +87,7 @@ should be noted that you must declare them as static memory arrays.
Examples::
- pragma solidity ^0.4.0;
+ pragma solidity >=0.4.0 <0.6.0;
contract C {
struct S {
@@ -127,7 +127,7 @@ which will be extended in the future. In addition, Arachnid has written `solidit
For now, if you want to modify a string (even when you only want to know its length),
you should always convert it to a ``bytes`` first::
- pragma solidity ^0.4.0;
+ pragma solidity >=0.4.0 <0.6.0;
contract C {
string s;
@@ -282,7 +282,7 @@ In the case of a ``contract A`` calling a new instance of ``contract B``, parent
You will need to make sure that you have both contracts aware of each other's presence and that ``contract B`` has a ``payable`` constructor.
In this example::
- pragma solidity >0.4.24;
+ pragma solidity >0.4.99 <0.6.0;
contract B {
constructor() public payable {}
@@ -330,7 +330,7 @@ Can a contract pass an array (static size) or string or ``bytes`` (dynamic size)
Sure. Take care that if you cross the memory / storage boundary,
independent copies will be created::
- pragma solidity ^0.4.16;
+ pragma solidity >=0.4.16 <0.6.0;
contract C {
uint[20] x;
@@ -367,7 +367,7 @@ contract level) with ``arrayname.length = <some new length>;``. If you get the
::
- pragma solidity ^0.4.18;
+ pragma solidity >=0.4.18 <0.6.0;
// This will not compile
contract C {