From 2f44aa40723b5673e3521b50f45bb7ef60bb307a Mon Sep 17 00:00:00 2001 From: Andreas Olofsson Date: Mon, 7 May 2018 11:44:37 +0200 Subject: change assert and require docs --- docs/units-and-global-variables.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') 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)``: -- cgit v1.2.3