Replace reference to `require by if`.

This commit is contained in:
Amid Moeinzadeh
2021-06-28 15:45:07 +02:00
committed by chriseth
parent b3ac0976fc
commit 16fdfdc4eb
+2 -2
View File
@@ -226,8 +226,8 @@ a failure can more easily be debugged or reacted upon.
The ``send`` function can be used by anyone (who already
has some of these coins) to send coins to anyone else. If the sender does not have
enough coins to send, the ``require`` call fails and provides the
sender with an appropriate error message string.
enough coins to send, the ``if`` condition evaluates to true. As a result, the ``revert`` will cause the operation to fail
while providing the sender with error details using the ``InsufficientBalance`` error.
.. note::
If you use