diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-16 06:04:01 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-19 21:02:50 +0800 |
commit | 5f89e1a2ac14535c8e245a0823303b046a963b65 (patch) | |
tree | 5fdfbee6f2b968419afb87241b9b1b7cc59b464e /docs/frequently-asked-questions.rst | |
parent | f8795afc707b51e48939b86504ec84a41f464dc7 (diff) | |
download | dexon-solidity-5f89e1a2ac14535c8e245a0823303b046a963b65.tar.gz dexon-solidity-5f89e1a2ac14535c8e245a0823303b046a963b65.tar.zst dexon-solidity-5f89e1a2ac14535c8e245a0823303b046a963b65.zip |
Merge the constructor sections
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r-- | docs/frequently-asked-questions.rst | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index 36b211fd..6af5d62f 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -144,29 +144,6 @@ from web3 (inside geth or a web application). The main advantage of events is that they are stored in a special way on the blockchain so that it is very easy to search for them. -Do contract constructors have to be publicly visible? -===================================================== - -You can use the visibility specifiers, but they do not yet have any effect. -The constructor is removed from the contract code once it is deployed, - -Can a contract have multiple constructors? -========================================== - -No, a contract can have only one constructor. - -More specifically, it can only have one function whose name matches -that of the constructor. - -Having multiple constructors with different number of arguments -or argument types, as it is possible in other languages -is not allowed in Solidity. - -Is a constructor required? -========================== - -No. If there is no constructor, a generic one without arguments and no actions will be used. - Are timestamps (``now,`` ``block.timestamp``) reliable? ======================================================= |