Skip to content

Commit

Permalink
use saved val (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
snreynolds authored Nov 10, 2022
1 parent dc8bb4b commit ac5fa13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AllowanceTransfer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ contract AllowanceTransfer is IAllowanceTransfer, EIP712 {
revert InsufficientAllowance();
} else {
unchecked {
allowed.amount -= amount;
allowed.amount = uint160(maxAmount) - amount;
}
}
}
Expand Down

0 comments on commit ac5fa13

Please sign in to comment.