diff options
author | chriseth <chris@ethereum.org> | 2017-12-30 20:46:02 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-12 19:09:37 +0800 |
commit | 3da16b3e8af41a1d743a94d2e19822e82440a63d (patch) | |
tree | 4e4d36013f8ee7e87ab98ce6592d9f03e848196a /docs/miscellaneous.rst | |
parent | a06249c98484f8ca3772b09f66bc68dd30c13c4d (diff) | |
download | dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.gz dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.bz2 dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.lz dexon-solidity-3da16b3e8af41a1d743a94d2e19822e82440a63d.tar.xz 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.rst | 1 |
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`` |