diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-08-29 22:27:14 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-08-29 22:27:14 +0800 |
commit | dd543d460243076d647df3e577ddc670597a506b (patch) | |
tree | b41c16348891911fbafc22c29904d8f14b0f9cfc | |
parent | eea4b63b44288553638e4953c5e4ec59390de7c7 (diff) | |
download | dexon-solidity-dd543d460243076d647df3e577ddc670597a506b.tar dexon-solidity-dd543d460243076d647df3e577ddc670597a506b.tar.gz dexon-solidity-dd543d460243076d647df3e577ddc670597a506b.tar.bz2 dexon-solidity-dd543d460243076d647df3e577ddc670597a506b.tar.lz dexon-solidity-dd543d460243076d647df3e577ddc670597a506b.tar.xz dexon-solidity-dd543d460243076d647df3e577ddc670597a506b.tar.zst dexon-solidity-dd543d460243076d647df3e577ddc670597a506b.zip |
Fix selfdestruct documentation
-rw-r--r-- | docs/introduction-to-smart-contracts.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index 31ec1b98..6fcd4854 100644 --- a/docs/introduction-to-smart-contracts.rst +++ b/docs/introduction-to-smart-contracts.rst @@ -444,13 +444,13 @@ receives the address of the new contract on the stack. .. index:: selfdestruct -Selfdestruct -============ +``selfdestruct`` +================ The only possibility that code is removed from the blockchain is -when a contract at that address performs the ``SELFDESTRUCT`` operation. +when a contract at that address performs the ``selfdestruct`` operation. The remaining Ether stored at that address is sent to a designated target and then the storage and code is removed. -Note that even if a contract's code does not contain the ``SELFDESTRUCT`` -opcode, it can still perform that operation using delegatecall or callcode. +Note that even if a contract's code does not contain a call to ``selfdestruct``, +it can still perform that operation using ``delegatecall`` or ``callcode``. |