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/units-and-global-variables.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/units-and-global-variables.rst')
-rw-r--r-- | docs/units-and-global-variables.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst index e7f41ed1..aad00ba2 100644 --- a/docs/units-and-global-variables.rst +++ b/docs/units-and-global-variables.rst @@ -101,6 +101,8 @@ Error Handling throws if the condition is not met - to be used for errors in inputs or external components. ``revert()``: abort execution and revert state changes +``revert(string reason)``: + abort execution and revert state changes, providing an explanatory string .. index:: keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, |