aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-06-14 01:08:13 +0800
committerGitHub <noreply@github.com>2017-06-14 01:08:13 +0800
commitd47fcbb6120b45b802350c7f7d083bd0e1ac301b (patch)
tree9dbcce910eea462e59471f751d3f629f2f5301a0
parent6b052249dac2bce9d3a87f21cbde3a6429428fc0 (diff)
downloaddexon-solidity-d47fcbb6120b45b802350c7f7d083bd0e1ac301b.tar.gz
dexon-solidity-d47fcbb6120b45b802350c7f7d083bd0e1ac301b.tar.zst
dexon-solidity-d47fcbb6120b45b802350c7f7d083bd0e1ac301b.zip
Clarify statement about receiving ether
Fixes #2377
-rw-r--r--docs/contracts.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index a1192d4e..01913654 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -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.
.. 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
before Solidity v0.4.0). So if you want your contract to receive Ether,
you have to implement a fallback function.