aboutsummaryrefslogtreecommitdiffstats
path: root/docs/miscellaneous.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-12-30 20:46:02 +0800
committerchriseth <chris@ethereum.org>2018-04-12 19:09:37 +0800
commit3da16b3e8af41a1d743a94d2e19822e82440a63d (patch)
tree4e4d36013f8ee7e87ab98ce6592d9f03e848196a /docs/miscellaneous.rst
parenta06249c98484f8ca3772b09f66bc68dd30c13c4d (diff)
downloaddexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.gz
dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.zst
dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.zip
Documentation for revert with reason string.
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r--docs/miscellaneous.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index 20400aa2..c5178b51 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -334,6 +334,7 @@ Global Variables
- ``assert(bool condition)``: abort execution and revert state changes if condition is ``false`` (use for internal error)
- ``require(bool condition)``: abort execution and revert state changes if condition is ``false`` (use for malformed input or error in external component)
- ``revert()``: abort execution and revert state changes
+- ``revert(string)``: abort execution and revert state changes providing an explanatory string
- ``blockhash(uint blockNumber) returns (bytes32)``: hash of the given block - only works for 256 most recent blocks
- ``keccak256(...) returns (bytes32)``: compute the Ethereum-SHA-3 (Keccak-256) hash of the :ref:`(tightly packed) arguments <abi_packed_mode>`
- ``sha3(...) returns (bytes32)``: an alias to ``keccak256``