Replace reference to `require by if`.

This commit is contained in:
Amid Moeinzadeh 2021-06-04 15:38:45 +04:30 committed by chriseth
parent b3ac0976fc
commit 16fdfdc4eb

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 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 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 enough coins to send, the ``if`` condition evaluates to true. As a result, the ``revert`` will cause the operation to fail
sender with an appropriate error message string. while providing the sender with error details using the ``InsufficientBalance`` error.
.. note:: .. note::
If you use If you use