diff options
author | chriseth <chris@ethereum.org> | 2016-08-17 22:44:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 22:44:15 +0800 |
commit | b2507e9f105ab701c417f8f2d125edf8f3022698 (patch) | |
tree | e67c6047c68d8e89e218fcb5dec1ef394aa4b828 /docs | |
parent | d6579a0a5f99425eae95329b77e07ea072122924 (diff) | |
parent | 774bb8ab3baa9d7b5e6368dcd0f887b13ff26ae8 (diff) | |
download | dexon-solidity-b2507e9f105ab701c417f8f2d125edf8f3022698.tar dexon-solidity-b2507e9f105ab701c417f8f2d125edf8f3022698.tar.gz dexon-solidity-b2507e9f105ab701c417f8f2d125edf8f3022698.tar.bz2 dexon-solidity-b2507e9f105ab701c417f8f2d125edf8f3022698.tar.lz dexon-solidity-b2507e9f105ab701c417f8f2d125edf8f3022698.tar.xz 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.rst | 4 |
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 |