aboutsummaryrefslogtreecommitdiffstats
path: root/docs/units-and-global-variables.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/units-and-global-variables.rst
parent586d156f33c78469f3272b4e8b8eae4f6229d04e (diff)
downloaddexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.gz
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.zst
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.zip
Document revert()
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r--docs/units-and-global-variables.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index a6f6613f..72741b67 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -79,7 +79,7 @@ Block and Transaction Properties
You can only access the hashes of the most recent 256 blocks, all other
values will be zero.
-.. index:: assert, keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, this, super, selfdestruct, balance, send
+.. index:: assert, revert, keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, this, super, selfdestruct, balance, send
Mathematical and Cryptographic Functions
----------------------------------------
@@ -100,6 +100,8 @@ Mathematical and Cryptographic Functions
compute RIPEMD-160 hash of the (tightly packed) arguments
``ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) returns (address)``:
recover the address associated with the public key from elliptic curve signature or return zero on error
+``revert()``:
+ abort execution and revert state changes
In the above, "tightly packed" means that the arguments are concatenated without padding.
This means that the following are all identical::