Skip to content

Commit

Permalink
clarify _spendAllowance natspec (#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander committed Feb 13, 2022
1 parent 4cb0926 commit be3c5ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/token/ERC20/ERC20.sol
Expand Up @@ -320,7 +320,7 @@ contract ERC20 is Context, IERC20, IERC20Metadata {
}

/**
* @dev Spend `amount` form the allowance of `owner` toward `spender`.
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC777/ERC777.sol
Expand Up @@ -502,7 +502,7 @@ contract ERC777 is Context, IERC777, IERC20 {
}

/**
* @dev Spend `amount` form the allowance of `owner` toward `spender`.
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
Expand Down

0 comments on commit be3c5ca

Please sign in to comment.