Clarify statement about receiving ether

Fixes #2377
This commit is contained in:
chriseth 2017-06-13 19:08:13 +02:00 committed by GitHub
parent 6b052249da
commit d47fcbb612

View File

@ -509,7 +509,8 @@ In particular, the following operations will consume more gas than the stipend p
Please ensure you test your fallback function thoroughly to ensure the execution cost is less than 2300 gas before deploying a contract. Please ensure you test your fallback function thoroughly to ensure the execution cost is less than 2300 gas before deploying a contract.
.. warning:: .. warning::
Contracts that receive Ether but do not define a fallback function Contracts that receive Ether directly (without a function call, i.e. using ``send`` or ``transfer``)
but do not define a fallback function
throw an exception, sending back the Ether (this was different throw an exception, sending back the Ether (this was different
before Solidity v0.4.0). So if you want your contract to receive Ether, before Solidity v0.4.0). So if you want your contract to receive Ether,
you have to implement a fallback function. you have to implement a fallback function.