diff options
author | chriseth <chris@ethereum.org> | 2018-04-04 21:16:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 21:16:01 +0800 |
commit | efa0ccaf9e25a257e1ee6b36c0b77b1532131077 (patch) | |
tree | 449c9ea9acbb082b993da41326dce01557e81c80 /docs/introduction-to-smart-contracts.rst | |
parent | 016f562348d5192b7d2f514a1aca961d4d665083 (diff) | |
parent | 0f7e18780f9afb1552feaf2100bde70aace7b2bf (diff) | |
download | dexon-solidity-efa0ccaf9e25a257e1ee6b36c0b77b1532131077.tar.gz dexon-solidity-efa0ccaf9e25a257e1ee6b36c0b77b1532131077.tar.zst dexon-solidity-efa0ccaf9e25a257e1ee6b36c0b77b1532131077.zip |
Merge pull request #3820 from ethereum/chriseth-patch-1
Clarify code state of contracts under construction.
Diffstat (limited to 'docs/introduction-to-smart-contracts.rst')
-rw-r--r-- | docs/introduction-to-smart-contracts.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index 56f0fe3e..84b1fff8 100644 --- a/docs/introduction-to-smart-contracts.rst +++ b/docs/introduction-to-smart-contracts.rst @@ -326,7 +326,13 @@ EVM bytecode and executed. The output of this execution is permanently stored as the code of the contract. This means that in order to create a contract, you do not send the actual code of the contract, but in fact code that -returns that code. +returns that code when executed. + +.. note:: + While a contract is being created, its code is still empty. + Because of that, you should not call back into the + contract under construction until its constructor has + finished executing. .. index:: ! gas, ! gas price |