aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorChris Ward <chriswhward@gmail.com>2018-08-01 19:32:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-01 23:21:29 +0800
commit0ad646635f6970de266138d4bdb3f1970406adfb (patch)
tree1cd48887a4df12c12a6357b34db71b73bf3beaa2 /docs/contracts.rst
parent9d0e927f85eb5621bb464ced1a54b6624465779e (diff)
downloaddexon-solidity-0ad646635f6970de266138d4bdb3f1970406adfb.tar.gz
dexon-solidity-0ad646635f6970de266138d4bdb3f1970406adfb.tar.zst
dexon-solidity-0ad646635f6970de266138d4bdb3f1970406adfb.zip
Small clarifications around the 2300 gas stipend from transfer and send
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index e78c3ff7..0263bd4f 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -561,7 +561,10 @@ 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 the worst case, the fallback function can only rely on 2300 gas being available (for example when send or transfer is used), leaving not much room to perform other operations except basic logging. The following operations will consume more gas than the 2300 gas stipend:
+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
+room to perform other operations except basic logging. The following operations
+will consume more gas than the 2300 gas stipend:
- Writing to storage
- Creating a contract