mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix selfdestruct documentation
This commit is contained in:
parent
eea4b63b44
commit
dd543d4602
@ -444,13 +444,13 @@ receives the address of the new contract on the stack.
|
|||||||
|
|
||||||
.. index:: selfdestruct
|
.. index:: selfdestruct
|
||||||
|
|
||||||
Selfdestruct
|
``selfdestruct``
|
||||||
============
|
================
|
||||||
|
|
||||||
The only possibility that code is removed from the blockchain is
|
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
|
The remaining Ether stored at that address is sent to a designated
|
||||||
target and then the storage and code is removed.
|
target and then the storage and code is removed.
|
||||||
|
|
||||||
Note that even if a contract's code does not contain the ``SELFDESTRUCT``
|
Note that even if a contract's code does not contain a call to ``selfdestruct``,
|
||||||
opcode, it can still perform that operation using delegatecall or callcode.
|
it can still perform that operation using ``delegatecall`` or ``callcode``.
|
||||||
|
Loading…
Reference in New Issue
Block a user