diff --git a/.changeset/lucky-crews-eat.md b/.changeset/lucky-crews-eat.md new file mode 100644 index 00000000000..48592b5eaf1 --- /dev/null +++ b/.changeset/lucky-crews-eat.md @@ -0,0 +1,5 @@ +--- +'openzeppelin-solidity': minor +--- + +`Votes`: Set `_moveDelegateVotes` visibility to internal instead of private. diff --git a/contracts/governance/utils/Votes.sol b/contracts/governance/utils/Votes.sol index b4a83a055e2..2b4def2e0cb 100644 --- a/contracts/governance/utils/Votes.sol +++ b/contracts/governance/utils/Votes.sol @@ -190,7 +190,7 @@ abstract contract Votes is Context, EIP712, Nonces, IERC5805 { /** * @dev Moves delegated votes from one delegate to another. */ - function _moveDelegateVotes(address from, address to, uint256 amount) private { + function _moveDelegateVotes(address from, address to, uint256 amount) internal virtual { if (from != to && amount > 0) { if (from != address(0)) { (uint256 oldValue, uint256 newValue) = _push(