Skip to content

Commit

Permalink
Add warning that low-level call/callcode/delegatecall don't check for…
Browse files Browse the repository at this point in the history
… existence
  • Loading branch information
axic committed Aug 1, 2017
1 parent f63bb0a commit d1b13c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/control-structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ When exceptions happen in a sub-call, they "bubble up" (i.e. exceptions are reth
and the low-level functions ``call``, ``delegatecall`` and ``callcode`` -- those return ``false`` in case
of an exception instead of "bubbling up".

.. warning::
The low-level ``call``, ``delegatecall`` and ``callcode`` will return success if the calling account is non-existent, as part of the design of EVM. Existence must be checked prior to calling if desired.

Catching exceptions is not yet possible.

In the following example, you can see how ``require`` can be used to easily check conditions on inputs
Expand Down

0 comments on commit d1b13c0

Please sign in to comment.