diff options
author | Chris Ward <chris.ward@ethereum.org> | 2019-01-16 20:36:59 +0800 |
---|---|---|
committer | Chris Ward <chris.ward@ethereum.org> | 2019-01-21 18:37:08 +0800 |
commit | a1df27ae3d65d22e69c1bf6b812e69d3d92a28cc (patch) | |
tree | a1ca1eb141b27653328d4faa235ecfe76d5fde94 /docs/contracts/functions.rst | |
parent | 606c2b99456c6be4cb1f563edee5286787b67490 (diff) | |
download | dexon-solidity-a1df27ae3d65d22e69c1bf6b812e69d3d92a28cc.tar dexon-solidity-a1df27ae3d65d22e69c1bf6b812e69d3d92a28cc.tar.gz dexon-solidity-a1df27ae3d65d22e69c1bf6b812e69d3d92a28cc.tar.bz2 dexon-solidity-a1df27ae3d65d22e69c1bf6b812e69d3d92a28cc.tar.lz dexon-solidity-a1df27ae3d65d22e69c1bf6b812e69d3d92a28cc.tar.xz dexon-solidity-a1df27ae3d65d22e69c1bf6b812e69d3d92a28cc.tar.zst dexon-solidity-a1df27ae3d65d22e69c1bf6b812e69d3d92a28cc.zip |
Merge payable FAQ item
Diffstat (limited to 'docs/contracts/functions.rst')
-rw-r--r-- | docs/contracts/functions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/contracts/functions.rst b/docs/contracts/functions.rst index 76245952..522ce5c4 100644 --- a/docs/contracts/functions.rst +++ b/docs/contracts/functions.rst @@ -236,9 +236,9 @@ functions match the given function identifier (or if no data was supplied at all). Furthermore, this function is executed whenever the contract receives plain -Ether (without data). Additionally, in order to receive Ether, the fallback function +Ether (without data). To receive Ether and add it to the total balance of the contract, the fallback function must be marked ``payable``. If no such function exists, the contract cannot receive -Ether through regular transactions. +Ether through regular transactions and throws an exception. In the worst case, the fallback function can only rely on 2300 gas being available (for example when `send` or `transfer` is used), leaving little |