aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-08-17 22:44:15 +0800
committerGitHub <noreply@github.com>2016-08-17 22:44:15 +0800
commitb2507e9f105ab701c417f8f2d125edf8f3022698 (patch)
treee67c6047c68d8e89e218fcb5dec1ef394aa4b828 /docs
parentd6579a0a5f99425eae95329b77e07ea072122924 (diff)
parent774bb8ab3baa9d7b5e6368dcd0f887b13ff26ae8 (diff)
downloaddexon-solidity-b2507e9f105ab701c417f8f2d125edf8f3022698.tar.gz
dexon-solidity-b2507e9f105ab701c417f8f2d125edf8f3022698.tar.zst
dexon-solidity-b2507e9f105ab701c417f8f2d125edf8f3022698.zip
Merge pull request #839 from chriseth/checkcode
BREAKING: Make function calls throw if target does not have code.
Diffstat (limited to 'docs')
-rw-r--r--docs/control-structures.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index a6daccac..5b78d099 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -69,6 +69,10 @@ this does not execute a constructor. We could also have used ``function setFeed(
only (locally) sets the value and amount of gas sent with the function call and only the
parentheses at the end perform the actual call.
+Function calls cause exceptions if the called contract does not exist (in the
+sense that the account does not contain code) or if the called contract itself
+throws an exception or goes out of gas.
+
.. warning::
Any interaction with another contract imposes a potential danger, especially
if the source code of the contract is not known in advance. The current