mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Changed limitation to feature
Changed the word "limitation" to "feature" for the note where transfer is described.
This commit is contained in:
parent
eb140bc6d6
commit
d4db1624b5
@ -129,7 +129,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);
|
if (x.balance < 10 && myAddress.balance >= 10) x.transfer(10);
|
||||||
|
|
||||||
.. note::
|
.. 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 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 and the current contract will stop with an exception.
|
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.
|
||||||
|
|
||||||
* ``send``
|
* ``send``
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user