diff options
author | Chris Ward <chris.ward@ethereum.org> | 2019-01-16 23:11:23 +0800 |
---|---|---|
committer | Chris Ward <chris.ward@ethereum.org> | 2019-01-16 23:11:23 +0800 |
commit | eab9e58e7e6b815e7dfb288510b49d52fe579fe2 (patch) | |
tree | 8f293280285a84c55cd87fd2ae110e808012c252 /docs/units-and-global-variables.rst | |
parent | 778b14de260a7eeaea88867e39cfc226f1494e63 (diff) | |
download | dexon-solidity-eab9e58e7e6b815e7dfb288510b49d52fe579fe2.tar dexon-solidity-eab9e58e7e6b815e7dfb288510b49d52fe579fe2.tar.gz dexon-solidity-eab9e58e7e6b815e7dfb288510b49d52fe579fe2.tar.bz2 dexon-solidity-eab9e58e7e6b815e7dfb288510b49d52fe579fe2.tar.lz dexon-solidity-eab9e58e7e6b815e7dfb288510b49d52fe579fe2.tar.xz dexon-solidity-eab9e58e7e6b815e7dfb288510b49d52fe579fe2.tar.zst dexon-solidity-eab9e58e7e6b815e7dfb288510b49d52fe579fe2.zip |
Add call warning into main docs and remove FAQ item
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r-- | docs/units-and-global-variables.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst index 59acfcff..e44caa8f 100644 --- a/docs/units-and-global-variables.rst +++ b/docs/units-and-global-variables.rst @@ -200,6 +200,10 @@ Members of Address Types For more information, see the section on :ref:`address`. .. warning:: + You should avoid using ``.call()`` when executing another contract function as it bypasses the compiler type checking, + function existence check, and argument packing. + +.. warning:: 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``, use ``transfer`` or even better: |