From 1fe32cbbc884819023e8781c627a7bf2f4539f1f Mon Sep 17 00:00:00 2001 From: Alisander Qoshqosh Date: Thu, 7 Nov 2024 13:40:57 +0400 Subject: [PATCH] add dots on comments --- contracts/src/token/erc20/utils/safe_erc20.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/src/token/erc20/utils/safe_erc20.rs b/contracts/src/token/erc20/utils/safe_erc20.rs index f1820e43..1669a69c 100644 --- a/contracts/src/token/erc20/utils/safe_erc20.rs +++ b/contracts/src/token/erc20/utils/safe_erc20.rs @@ -294,13 +294,13 @@ impl ISafeErc20 for SafeErc20 { ) -> Result<(), Self::Error> { let approve_call = IErc20::approveCall { spender, value }; - // Try performing the approval with the desired value + // Try performing the approval with the desired value. if Self::call_optional_return(token, &approve_call).is_ok() { return Ok(()); } // If that fails, reset the allowance to zero, then retry the desired - // approval + // approval. let reset_approval_call = IErc20::approveCall { spender, value: U256::ZERO }; Self::call_optional_return(token, &reset_approval_call)?; @@ -345,7 +345,7 @@ impl SafeErc20 { } /// Returns the remaining number of ERC-20 tokens that `spender` - /// will be allowed to spend on behalf of owner. + /// will be allowed to spend on behalf of an owner. /// /// # Arguments ///