Documented max stack depth at 1024

This commit is contained in:
Denton Liu 2016-06-02 09:14:53 -04:00
parent 0b4b5e1046
commit fc121b9ba7
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ and to send Ether (in units of wei) to an address using the ``send`` function:
If ``x`` is a contract address, its code (more specifically: its fallback function, if present) will be executed together with the ``send`` call (this is a limitation of the EVM and cannot be prevented). If that execution runs out of gas or fails in any way, the Ether transfer will be reverted. In this case, ``send`` returns ``false``.
.. warning::
There are some dangers in using ``send``: The transfer fails if the call stack depth is at 1023
There are some dangers in using ``send``: The transfer fails if the call stack depth is at 1024
(this can always be forced by the caller) and it also fails if the recipient runs out of gas. So in order
to make safe Ether transfers, always check the return value of ``send`` or even better:
Use a pattern where the recipient withdraws the money.

View File

@ -122,7 +122,7 @@ Address Related
send given amount of Wei to :ref:`address`, returns ``false`` on failure
.. warning::
There are some dangers in using ``send``: The transfer fails if the call stack depth is at 1023
There are some dangers in using ``send``: The transfer fails if the call stack depth is at 1024
(this can always be forced by the caller) and it also fails if the recipient runs out of gas. So in order
to make safe Ether transfers, always check the return value of ``send`` or even better:
Use a pattern where the recipient withdraws the money.