Skip to content

Commit 427b8bb

Browse files
authored
Make Votes.sol _makeDelegateVotes internal (#5007)
1 parent df78791 commit 427b8bb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lucky-crews-eat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': minor
3+
---
4+
5+
`Votes`: Set `_moveDelegateVotes` visibility to internal instead of private.

contracts/governance/utils/Votes.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ abstract contract Votes is Context, EIP712, Nonces, IERC5805 {
190190
/**
191191
* @dev Moves delegated votes from one delegate to another.
192192
*/
193-
function _moveDelegateVotes(address from, address to, uint256 amount) private {
193+
function _moveDelegateVotes(address from, address to, uint256 amount) internal virtual {
194194
if (from != to && amount > 0) {
195195
if (from != address(0)) {
196196
(uint256 oldValue, uint256 newValue) = _push(

0 commit comments

Comments
 (0)