Make Votes.sol _makeDelegateVotes internal (#5007)
This commit is contained in:
5
.changeset/lucky-crews-eat.md
Normal file
5
.changeset/lucky-crews-eat.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'openzeppelin-solidity': minor
|
||||
---
|
||||
|
||||
`Votes`: Set `_moveDelegateVotes` visibility to internal instead of private.
|
||||
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user