aboutsummaryrefslogtreecommitdiffstats
path: root/docs/miscellaneous.rst
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-02-16 22:49:59 +0800
committerchriseth <c@ethdev.com>2017-02-16 22:54:17 +0800
commit811bb770c51bc63f9ccb2bff014482ba9c760132 (patch)
tree5c2569da54577708b95544f8719e0beeeeac8f63 /docs/miscellaneous.rst
parentad751bd3e6f22fadc01d43610ec2e2e008c32f11 (diff)
downloaddexon-solidity-811bb770c51bc63f9ccb2bff014482ba9c760132.tar.gz
dexon-solidity-811bb770c51bc63f9ccb2bff014482ba9c760132.tar.zst
dexon-solidity-811bb770c51bc63f9ccb2bff014482ba9c760132.zip
Change effect of assert to invalid opcode.
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r--docs/miscellaneous.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index 3c57507e..80326bab 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -461,7 +461,7 @@ Global Variables
- ``ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) returns (address)``: recover address associated with the public key from elliptic curve signature, return zero on error
- ``addmod(uint x, uint y, uint k) returns (uint)``: compute ``(x + y) % k`` where the addition is performed with arbitrary precision and does not wrap around at ``2**256``
- ``mulmod(uint x, uint y, uint k) returns (uint)``: compute ``(x * y) % k`` where the multiplication is performed with arbitrary precision and does not wrap around at ``2**256``
-- ``assert(bool condition)``: throws if the condition is false
+- ``assert(bool condition)``: throws if the condition is false (using an invalid opcode)
- ``this`` (current contract's type): the current contract, explicitly convertible to ``address``
- ``super``: the contract one level higher in the inheritance hierarchy
- ``selfdestruct(address recipient)``: destroy the current contract, sending its funds to the given address