From 4657ccfd87219e360856f7b2fa89b4cc57a79d80 Mon Sep 17 00:00:00 2001 From: Faisal Usmani Date: Sat, 29 Mar 2025 12:33:01 -0400 Subject: [PATCH] Updated the paragraph to reflect the smart contract code --- docs/introduction-to-smart-contracts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index 994cb85d479f..bdf462acba40 100644 --- a/docs/introduction-to-smart-contracts.rst +++ b/docs/introduction-to-smart-contracts.rst @@ -228,7 +228,7 @@ 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 ``if`` condition evaluates to true. As a result, the ``revert`` will cause the operation to fail +enough coins to send, the ``require`` condition evaluates to false. As a result, the ``require`` will cause the operation to fail while providing the sender with error details using the ``InsufficientBalance`` error. .. note::