diff options
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r-- | docs/contracts.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst index a1192d4e..356fa90d 100644 --- a/docs/contracts.rst +++ b/docs/contracts.rst @@ -458,6 +458,8 @@ value types and strings. } +.. _constant-functions: + ****************** Constant Functions ****************** @@ -509,7 +511,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. |