aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-05-09 17:07:00 +0800
committerGitHub <noreply@github.com>2018-05-09 17:07:00 +0800
commitaeb6a33957051d07add36cfd4d7fd58655bd6426 (patch)
tree16e8a0320c2362a49fbf79523b37f6f772fb8d16
parent54aa10ce367297a4b4f5ae3513dbe8c715e9fb88 (diff)
parent2f44aa40723b5673e3521b50f45bb7ef60bb307a (diff)
downloaddexon-solidity-aeb6a33957051d07add36cfd4d7fd58655bd6426.tar.gz
dexon-solidity-aeb6a33957051d07add36cfd4d7fd58655bd6426.tar.zst
dexon-solidity-aeb6a33957051d07add36cfd4d7fd58655bd6426.zip
Merge pull request #4082 from androlo/develop
change assert and require 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)``: