Remove outdated comment in ERC-20 (#4968)
Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
committed by
GitHub
parent
0c18fac08a
commit
e203e02523
@ -133,8 +133,8 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
|
|||||||
/**
|
/**
|
||||||
* @dev See {IERC20-transferFrom}.
|
* @dev See {IERC20-transferFrom}.
|
||||||
*
|
*
|
||||||
* Emits an {Approval} event indicating the updated allowance. This is not
|
* Skips emitting an {Approval} event indicating an allowance update. This is not
|
||||||
* required by the ERC. See the note at the beginning of {ERC20}.
|
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
|
||||||
*
|
*
|
||||||
* NOTE: Does not update the allowance if the current allowance
|
* NOTE: Does not update the allowance if the current allowance
|
||||||
* is the maximum `uint256`.
|
* is the maximum `uint256`.
|
||||||
@ -268,7 +268,8 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
|
|||||||
*
|
*
|
||||||
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
|
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
|
||||||
* true using the following override:
|
* true using the following override:
|
||||||
* ```
|
*
|
||||||
|
* ```solidity
|
||||||
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
|
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
|
||||||
* super._approve(owner, spender, value, true);
|
* super._approve(owner, spender, value, true);
|
||||||
* }
|
* }
|
||||||
|
|||||||
Reference in New Issue
Block a user