Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Grimal committed Oct 11, 2024
1 parent f8d4fa5 commit e6c3b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DelegatesContracts/DelegatesUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ abstract contract DelegatesUpgradeable is
function _transferVotingUnits(address from, address to, uint256 amount) internal virtual {
VotesStorage storage $ = _getVotesStorage();
if (from == address(0)) {
$._totalCheckpoints += amount;
$._totalVotingPower += amount;
}
if (to == address(0)) {
$._totalCheckpoints -= amount;
$._totalVotingPower -= amount;
}
_moveDelegateVotes(delegates(from), delegates(to), amount);
}
Expand Down

0 comments on commit e6c3b57

Please sign in to comment.