aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndreas Olofsson <androlo1980@gmail.com>2018-05-07 17:44:37 +0800
committerGitHub <noreply@github.com>2018-05-07 17:44:37 +0800
commit2f44aa40723b5673e3521b50f45bb7ef60bb307a (patch)
treea267c8a3df709faf0bbc0d354ca5c06b37a0849d /docs
parentd0bd549d8567934a5a674b44050980bd4b5c3a53 (diff)
downloaddexon-solidity-2f44aa40723b5673e3521b50f45bb7ef60bb307a.tar.gz
dexon-solidity-2f44aa40723b5673e3521b50f45bb7ef60bb307a.tar.zst
dexon-solidity-2f44aa40723b5673e3521b50f45bb7ef60bb307a.zip
change assert and require docs
Diffstat (limited to 'docs')
-rw-r--r--docs/units-and-global-variables.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index 4cb34fbd..a6f8ca87 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -120,11 +120,11 @@ Error Handling
--------------
``assert(bool condition)``:
- throws if the condition is not met - to be used for internal errors.
+ invalidates the transaction if the condition is not met - to be used for internal errors.
``require(bool condition)``:
- throws if the condition is not met - to be used for errors in inputs or external components.
+ reverts if the condition is not met - to be used for errors in inputs or external components.
``require(bool condition, string message)``:
- throws if the condition is not met - to be used for errors in inputs or external components. Also provides an error message.
+ reverts if the condition is not met - to be used for errors in inputs or external components. Also provides an error message.
``revert()``:
abort execution and revert state changes
``revert(string reason)``: