Skip to content

Commit

Permalink
add dots on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qalisander committed Nov 7, 2024
1 parent 9a26dbf commit 1fe32cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/src/token/erc20/utils/safe_erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down Expand Up @@ -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
///
Expand Down

0 comments on commit 1fe32cb

Please sign in to comment.