aboutsummaryrefslogtreecommitdiffstats
path: root/docs/miscellaneous.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-10 00:32:48 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-11 06:42:33 +0800
commit28a7b1e019dc6f694d0615d7ef1220f19c10e861 (patch)
tree1af96f37cbfeb3672905f77117950aeed8a797ca /docs/miscellaneous.rst
parent586d156f33c78469f3272b4e8b8eae4f6229d04e (diff)
downloaddexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.gz
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.bz2
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.lz
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.xz
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.zst
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.zip
Document revert()
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r--docs/miscellaneous.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index a64ceeb2..3c57507e 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -435,7 +435,7 @@ The following is the order of precedence for operators, listed in order of evalu
| *16* | Comma operator | ``,`` |
+------------+-------------------------------------+--------------------------------------------+
-.. index:: block, coinbase, difficulty, number, block;number, timestamp, block;timestamp, msg, data, gas, sender, value, now, gas price, origin, assert, keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, this, super, selfdestruct, balance, send
+.. index:: block, coinbase, difficulty, number, block;number, timestamp, block;timestamp, msg, data, gas, sender, value, now, gas price, origin, assert, revert, keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, this, super, selfdestruct, balance, send
Global Variables
================
@@ -453,6 +453,7 @@ Global Variables
- ``now`` (``uint``): current block timestamp (alias for ``block.timestamp``)
- ``tx.gasprice`` (``uint``): gas price of the transaction
- ``tx.origin`` (``address``): sender of the transaction (full call chain)
+- ``revert()``: abort execution and revert state changes
- ``keccak256(...) returns (bytes32)``: compute the Ethereum-SHA-3 (Keccak-256) hash of the (tightly packed) arguments
- ``sha3(...) returns (bytes32)``: an alias to `keccak256()`
- ``sha256(...) returns (bytes32)``: compute the SHA-256 hash of the (tightly packed) arguments