diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-09 07:37:23 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-24 08:18:18 +0800 |
commit | a36e2ce0cbb7e1830e25dacd8d79f207c9bcca6a (patch) | |
tree | 42de13ab0c0d43e0809fc4a136fcb757b9f6fa92 /docs/types.rst | |
parent | 81006dae98ee18c33994af0274de10857774ff70 (diff) | |
download | dexon-solidity-a36e2ce0cbb7e1830e25dacd8d79f207c9bcca6a.tar.gz dexon-solidity-a36e2ce0cbb7e1830e25dacd8d79f207c9bcca6a.tar.zst dexon-solidity-a36e2ce0cbb7e1830e25dacd8d79f207c9bcca6a.zip |
Document transfer()
Diffstat (limited to 'docs/types.rst')
-rw-r--r-- | docs/types.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst index 69c23e6e..342b67f4 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -64,7 +64,7 @@ expression ``x << y`` is equivalent to ``x * 2**y`` and ``x >> y`` is equivalent to ``x / 2**y``. This means that shifting negative numbers sign extends. Shifting by a negative amount throws a runtime exception. -.. index:: address, balance, send, call, callcode, delegatecall +.. index:: address, balance, send, call, callcode, delegatecall, transfer .. _address: @@ -102,6 +102,10 @@ and to send Ether (in units of wei) to an address using the ``send`` function: to make safe Ether transfers, always check the return value of ``send`` or even better: Use a pattern where the recipient withdraws the money. +* ``transfer`` + +Transfer operates the same way as ``send``, with the exception that it will cause a exception if the transfer has failed. + * ``call``, ``callcode`` and ``delegatecall`` Furthermore, to interface with contracts that do not adhere to the ABI, |