Skip to content

Commit 96cbe16

Browse files
committed
revert code change (bad merge?)
1 parent f5b0b13 commit 96cbe16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/token/ERC20/extensions/ERC20Burnable.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ abstract contract ERC20Burnable is Context, ERC20 {
3232
* `amount`.
3333
*/
3434
function burnFrom(address account, uint256 amount) public virtual {
35-
uint256 allowance_ = allowance(account, _msgSender());
36-
require(allowance_ >= amount, "ERC20: burn amount exceeds allowance");
37-
_approve(account, _msgSender(), allowance_ - amount);
35+
uint256 currentAllowance = allowance(account, _msgSender());
36+
require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
37+
_approve(account, _msgSender(), currentAllowance - amount);
3838
_burn(account, amount);
3939
}
4040
}

0 commit comments

Comments
 (0)