aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-09-21 20:44:12 +0800
committerGitHub <noreply@github.com>2017-09-21 20:44:12 +0800
commit68fbe1ec0e979535c03fbba0f12a07c9f9b79385 (patch)
tree10a455c161d740209be824f7777dcc43d1602f4c
parent11671983278da80e8c8957dd541fab1f126a41d0 (diff)
parent7f88d439375ad97269b7de231cf3c3f22c36c6c8 (diff)
downloaddexon-solidity-68fbe1ec0e979535c03fbba0f12a07c9f9b79385.tar.gz
dexon-solidity-68fbe1ec0e979535c03fbba0f12a07c9f9b79385.tar.zst
dexon-solidity-68fbe1ec0e979535c03fbba0f12a07c9f9b79385.zip
Merge pull request #2945 from LefterisJP/docs_fix_fallback_gas
Better specify the fall function gas cost in the docs.
-rw-r--r--docs/contracts.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 3bd6f6a8..69600fc1 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -519,8 +519,7 @@ Ether (without data). Additionally, in order to receive Ether, the fallback func
must be marked ``payable``. If no such function exists, the contract cannot receive
Ether through regular transactions.
-In such a context, there is usually very little gas available to the function call (to be precise, 2300 gas),
-so it is important to make fallback functions as cheap as possible.
+In such a context, there is usually very little gas available to the function call (to be precise, 2300 gas), so it is important to make fallback functions as cheap as possible. Note that the gas required by a transaction (as opposed to an internal call) that invokes the fallback function is much higher, because each transaction charges an additional amount of 21000 gas or more for things like signature checking.
In particular, the following operations will consume more gas than the stipend provided to a fallback function: