Documentation.

This commit is contained in:
chriseth
2016-08-30 15:32:28 +02:00
parent 546aca2a3e
commit eb241ff1b3
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -103,7 +103,9 @@ and stall those. Please be explicit about such cases in the documentation of you
Sending and Receiving Ether
===========================
- If a contract receives Ether (without a function being called), the fallback function is executed. The contract can only rely
- If a contract receives Ether (without a function being called), the fallback function is executed.
If it does not have a fallback function, the Ether will be rejected (by throwing an exception).
During the execution of the fallback function, the contract can only rely
on the "gas stipend" (2300 gas) being available to it at that time. This stipend is not enough to access storage in any way.
To be sure that your contract can receive Ether in that way, check the gas requirements of the fallback function
(for example in the "details" section in browser-solidity).