aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-13 00:25:46 +0800
committerGitHub <noreply@github.com>2018-12-13 00:25:46 +0800
commit1c8c8734654a4bea8270beff7e1a295323002af3 (patch)
treea964b98ccf04a5b215f92f3ab7777ac0dbb418f8 /docs/frequently-asked-questions.rst
parent87237281bf252b7afcf5d1295e75a03bf41ac864 (diff)
parenta4da8c1ad83eddbf957d02ef44e6a5d4aad65904 (diff)
downloaddexon-solidity-1c8c8734654a4bea8270beff7e1a295323002af3.tar.gz
dexon-solidity-1c8c8734654a4bea8270beff7e1a295323002af3.tar.zst
dexon-solidity-1c8c8734654a4bea8270beff7e1a295323002af3.zip
Merge pull request #5633 from ethereum/faq-kill
DOCS: Remove FAQ item on killing contracts
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r--docs/frequently-asked-questions.rst23
1 files changed, 0 insertions, 23 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index e58db133..a4ef3684 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -9,29 +9,6 @@ This list was originally compiled by `fivedogit <mailto:fivedogit@gmail.com>`_.
Basic Questions
***************
-Create a contract that can be killed and return funds
-=====================================================
-
-First, a word of warning: Killing contracts sounds like a good idea, because "cleaning up"
-is always good, but as seen above, it does not really clean up. Furthermore,
-if Ether is sent to removed contracts, the Ether will be forever lost.
-
-If you want to deactivate your contracts, it is preferable to **disable** them by changing some
-internal state which causes all functions to throw. This will make it impossible
-to use the contract and ether sent to the contract will be returned automatically.
-
-Now to answering the question: Inside a constructor, ``msg.sender`` is the
-creator. Save it. Then ``selfdestruct(creator);`` to kill and return funds.
-
-`example <https://github.com/fivedogit/solidity-baby-steps/blob/master/contracts/05_greeter.sol>`_
-
-Note that if you ``import "mortal"`` at the top of your contracts and declare
-``contract SomeContract is mortal { ...`` and compile with a compiler that already
-has it (which includes `Remix <https://remix.ethereum.org/>`_), then
-``kill()`` is taken care of for you. Once a contract is "mortal", then you can
-``contractname.kill.sendTransaction({from:eth.coinbase})``, just the same as my
-examples.
-
If I return an ``enum``, I only get integer values in web3.js. How to get the named values?
===========================================================================================