Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update contracts/token/ERC20/extensions/draft-ERC20TemporaryApproval.sol
Co-authored-by: Ernesto García <[email protected]>
  • Loading branch information
2 people authored and cairoeth committed Jul 16, 2024
commit a18f96350a5906b4c00d3e4a1c995c2ae8ff3d1e
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ abstract contract ERC20TemporaryApproval is ERC20, IERC7674 {
/**
* @dev {_spendAllowance} override that consumes the temporary allowance (if any) before eventually falling back
* to consuming the persistent allowance.
* NOTE: This function skips calling `super._spendAllowance` if the temporary allowance
* is enough to cover the spending.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual override {
// load transient allowance
Expand Down