From 9a91bd80abc79b82de9e3e7881cccab43e6dde9a Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 30 Aug 2016 15:37:10 +0200 Subject: Clarify warning. --- docs/contracts.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') 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. :: -- cgit