aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorChris Ward <chriswhward@gmail.com>2018-12-12 21:42:49 +0800
committerChris Ward <chriswhward@gmail.com>2018-12-13 00:21:36 +0800
commita4da8c1ad83eddbf957d02ef44e6a5d4aad65904 (patch)
treea964b98ccf04a5b215f92f3ab7777ac0dbb418f8 /docs
parent87237281bf252b7afcf5d1295e75a03bf41ac864 (diff)
downloaddexon-solidity-a4da8c1ad83eddbf957d02ef44e6a5d4aad65904.tar.gz
dexon-solidity-a4da8c1ad83eddbf957d02ef44e6a5d4aad65904.tar.zst
dexon-solidity-a4da8c1ad83eddbf957d02ef44e6a5d4aad65904.zip
Remove FAQ item on killing contracts
Diffstat (limited to 'docs')
-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?
===========================================================================================