aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-08-01 23:23:06 +0800
committerGitHub <noreply@github.com>2018-08-01 23:23:06 +0800
commit1f832e068b2d2c79fff870742d867b655b62f691 (patch)
tree92ced4e8c40fe9aecdcb77363dcd34802113e47f /docs/contracts.rst
parentce99a5ce7f98b3dfb86ea8397a5117332af33f2a (diff)
parent0ad646635f6970de266138d4bdb3f1970406adfb (diff)
downloaddexon-solidity-1f832e068b2d2c79fff870742d867b655b62f691.tar
dexon-solidity-1f832e068b2d2c79fff870742d867b655b62f691.tar.gz
dexon-solidity-1f832e068b2d2c79fff870742d867b655b62f691.tar.bz2
dexon-solidity-1f832e068b2d2c79fff870742d867b655b62f691.tar.lz
dexon-solidity-1f832e068b2d2c79fff870742d867b655b62f691.tar.xz
dexon-solidity-1f832e068b2d2c79fff870742d867b655b62f691.tar.zst
dexon-solidity-1f832e068b2d2c79fff870742d867b655b62f691.zip
Merge pull request #4639 from ethereum/docs-fix-specify-limit
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 e87c8a67..2149167b 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -563,7 +563,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