diff options
author | gftea <1705787+gftea@users.noreply.github.com> | 2018-08-09 18:08:40 +0800 |
---|---|---|
committer | Simon Chen <simon.chen@ericsson.com> | 2018-08-09 21:12:20 +0800 |
commit | c45de14ba82a30139dddbcdc68fa059c5ec3917e (patch) | |
tree | 47082373b985a2acc266f44325f603efd4631041 /docs/types.rst | |
parent | 711e2b7cff671141009877423fad605627f95e30 (diff) | |
download | dexon-solidity-c45de14ba82a30139dddbcdc68fa059c5ec3917e.tar.gz dexon-solidity-c45de14ba82a30139dddbcdc68fa059c5ec3917e.tar.zst dexon-solidity-c45de14ba82a30139dddbcdc68fa059c5ec3917e.zip |
add link for text "fallback function"
Diffstat (limited to 'docs/types.rst')
-rw-r--r-- | docs/types.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst index 208966be..bcd3ce9c 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -134,7 +134,7 @@ and to send Ether (in units of wei) to an address using the ``transfer`` functio if (x.balance < 10 && myAddress.balance >= 10) x.transfer(10); .. note:: - If ``x`` is a contract address, its code (more specifically: its fallback function, if present) will be executed together with the ``transfer`` call (this is a feature 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 and the current contract will stop with an exception. + If ``x`` is a contract address, its code (more specifically: its :ref:`fallback-function`, if present) will be executed together with the ``transfer`` call (this is a feature 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 and the current contract will stop with an exception. * ``send`` |