Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
fixed _payDebt loop (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xgregthedev authored Jan 3, 2023
1 parent 4006567 commit 6dc56aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LienToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ contract LienToken is ERC721, ILienToken, AuthInitializable {
address payer,
AuctionStack[] memory stack
) internal returns (uint256 totalSpent) {
for (uint256 i = 0; i < stack.length; i++) {
uint256 i;
for (; i < stack.length;) {
uint256 spent;
unchecked {
spent = _paymentAH(s, token, stack, i, payment, payer);
Expand Down

0 comments on commit 6dc56aa

Please sign in to comment.