aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-08-30 21:37:10 +0800
committerchriseth <c@ethdev.com>2016-08-30 21:37:10 +0800
commit9a91bd80abc79b82de9e3e7881cccab43e6dde9a (patch)
treedfbbef638d2f700f53c8c0c5aea7f79e9de4cdd7
parenteb241ff1b30ca32aaba0a455c0aa74cbb868c405 (diff)
downloaddexon-solidity-9a91bd80abc79b82de9e3e7881cccab43e6dde9a.tar.gz
dexon-solidity-9a91bd80abc79b82de9e3e7881cccab43e6dde9a.tar.zst
dexon-solidity-9a91bd80abc79b82de9e3e7881cccab43e6dde9a.zip
Clarify warning.
-rw-r--r--docs/contracts.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 234ab46a..a22a3544 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -448,8 +448,9 @@ 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::
- The default fallback function will throw an exception (this was different
- before Solidity v0.4.0), so if you want your contract to receive Ether,
+ Contracts that receive Ether 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.
::