Skip to content

Commit fdc9012

Browse files
committed
update variable name
1 parent 1d6786c commit fdc9012

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/token/ERC20/base/ERC20BaseInternal.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ abstract contract ERC20BaseInternal is IERC20BaseInternal {
151151
address recipient,
152152
uint256 amount
153153
) internal virtual returns (bool) {
154-
uint256 currentAllowance = _allowance(holder, msg.sender);
154+
uint256 allowance = _allowance(holder, msg.sender);
155155

156156
require(
157-
currentAllowance >= amount,
157+
allowance >= amount,
158158
'ERC20: transfer amount exceeds allowance'
159159
);
160160

161161
unchecked {
162-
_approve(holder, msg.sender, currentAllowance - amount);
162+
_approve(holder, msg.sender, allowance - amount);
163163
}
164164

165165
_transfer(holder, recipient, amount);

0 commit comments

Comments
 (0)