diff options
author | Fabio Berger <fabioberger1991@gmail.com> | 2016-06-19 09:19:57 +0800 |
---|---|---|
committer | Fabio Berger <fabioberger1991@gmail.com> | 2016-06-19 09:19:57 +0800 |
commit | 4139eddb1de9616b025ff5f2f5745205897e5697 (patch) | |
tree | 8db0dddcbfd5458d7e612936fae3dd91508f4e72 /docs/miscellaneous.rst | |
parent | 38b1c3d4924d83b4a4326a906a5114647c6fc8b0 (diff) | |
download | dexon-solidity-4139eddb1de9616b025ff5f2f5745205897e5697.tar.gz dexon-solidity-4139eddb1de9616b025ff5f2f5745205897e5697.tar.zst dexon-solidity-4139eddb1de9616b025ff5f2f5745205897e5697.zip |
Fix mis-typed word. The recipient will `run` out of gas, not `go` out of gas
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r-- | docs/miscellaneous.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst index c9a8890f..c883815c 100644 --- a/docs/miscellaneous.rst +++ b/docs/miscellaneous.rst @@ -161,7 +161,7 @@ Unfortunately, there are some subtleties the compiler does not yet warn you abou 2. Sending Ether can fail due to the call depth going above 1024. Since the caller is in total control of the call depth, they can force the transfer to fail, so make sure to always check the return value of ``send``. Better yet, write your contract using a pattern where the recipient can withdraw Ether instead. - 3. Sending Ether can also fail because the recipient goes out of gas (either explicitly by using ``throw`` or + 3. Sending Ether can also fail because the recipient runs out of gas (either explicitly by using ``throw`` or because the operation is just too expensive). If the return value of ``send`` is checked, this might provide a means for the recipient to block progress in the sending contract. Again, the best practise here is to use a "withdraw" pattern instead of a "send" pattern. |