From 16fdfdc4eb4b7fb775c05cc4bc5362492a60a7d8 Mon Sep 17 00:00:00 2001 From: Amid Moeinzadeh Date: Fri, 4 Jun 2021 15:38:45 +0430 Subject: [PATCH] Replace reference to ``require`` by ``if``. --- docs/introduction-to-smart-contracts.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index dd1b5c3c3..6b427226c 100644 --- a/docs/introduction-to-smart-contracts.rst +++ b/docs/introduction-to-smart-contracts.rst @@ -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