We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6786c commit fdc9012Copy full SHA for fdc9012
contracts/token/ERC20/base/ERC20BaseInternal.sol
@@ -151,15 +151,15 @@ abstract contract ERC20BaseInternal is IERC20BaseInternal {
151
address recipient,
152
uint256 amount
153
) internal virtual returns (bool) {
154
- uint256 currentAllowance = _allowance(holder, msg.sender);
+ uint256 allowance = _allowance(holder, msg.sender);
155
156
require(
157
- currentAllowance >= amount,
+ allowance >= amount,
158
'ERC20: transfer amount exceeds allowance'
159
);
160
161
unchecked {
162
- _approve(holder, msg.sender, currentAllowance - amount);
+ _approve(holder, msg.sender, allowance - amount);
163
}
164
165
_transfer(holder, recipient, amount);
0 commit comments