Переглянути джерело

Make Votes.sol _makeDelegateVotes internal (#5007)

Ernesto García 1 рік тому
батько
коміт
427b8bb028

+ 5 - 0
.changeset/lucky-crews-eat.md

@@ -0,0 +1,5 @@
+---
+'openzeppelin-solidity': minor
+---
+
+`Votes`: Set `_moveDelegateVotes` visibility to internal instead of private.

+ 1 - 1
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(