diff options
author | chriseth <chris@ethereum.org> | 2017-02-24 22:42:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-24 22:42:52 +0800 |
commit | 673268a6f8345e9276764f13e105869f5be92adc (patch) | |
tree | 24fca84a746ec5b56d97070529212b1c76f114bb /docs/frequently-asked-questions.rst | |
parent | bec3c6fab6bf02aea5664be4423f45e98db22e8e (diff) | |
parent | 4d290e551c2d563671f9d56744883d3f3dff98ec (diff) | |
download | dexon-solidity-673268a6f8345e9276764f13e105869f5be92adc.tar dexon-solidity-673268a6f8345e9276764f13e105869f5be92adc.tar.gz dexon-solidity-673268a6f8345e9276764f13e105869f5be92adc.tar.bz2 dexon-solidity-673268a6f8345e9276764f13e105869f5be92adc.tar.lz dexon-solidity-673268a6f8345e9276764f13e105869f5be92adc.tar.xz dexon-solidity-673268a6f8345e9276764f13e105869f5be92adc.tar.zst dexon-solidity-673268a6f8345e9276764f13e105869f5be92adc.zip |
Merge pull request #1651 from ethereum/transfer-method
Add address.transfer(value)
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r-- | docs/frequently-asked-questions.rst | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index d2fc5b1c..8a68ae5b 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -660,16 +660,6 @@ https://github.com/ethereum/wiki/wiki/Subtleties After a successful CREATE operation's sub-execution, if the operation returns x, 5 * len(x) gas is subtracted from the remaining gas before the contract is created. If the remaining gas is less than 5 * len(x), then no gas is subtracted, the code of the created contract becomes the empty string, but this is not treated as an exceptional condition - no reverts happen. -How do I use ``.send()``? -========================= - -If you want to send 20 Ether from a contract to the address ``x``, you use ``x.send(20 ether);``. -Here, ``x`` can be a plain address or a contract. If the contract already explicitly defines -a function ``send`` (and thus overwrites the special function), you can use ``address(x).send(20 ether);``. - -Note that the call to ``send`` may fail in certain conditions, such as if you have insufficient funds, so you should always check the return value. -``send`` returns ``true`` if the send was successful and ``false`` otherwise. - What does the following strange check do in the Custom Token contract? ====================================================================== |