aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.rst
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-02 22:25:54 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-02 22:25:54 +0800
commite16e37f5074ce359b852f3b2e4b80095d22952dc (patch)
treea076864dbe06cfbe47121b2e8a0a3c335b28a338 /docs/frequently-asked-questions.rst
parentda60fdab37ddd6126e5ba605e7041dc6f26ab5ee (diff)
downloaddexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.tar.gz
dexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.tar.zst
dexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.zip
Updates docs to new constructor syntax.
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r--docs/frequently-asked-questions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index ca5a1aee..152af607 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -426,10 +426,10 @@ 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.0;
+ pragma solidity ^0.4.24;
contract B {
- function B() public payable {}
+ constructor() public payable {}
}
contract A {