Skip to content

Commit

Permalink
Properly call super in GovernorWithParamsMock
Browse files Browse the repository at this point in the history
  • Loading branch information
apbendi committed Feb 26, 2022
1 parent 455efe8 commit 8722c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/mocks/GovernorWithParamsMock.sol
Expand Up @@ -33,7 +33,7 @@ contract GovernorWithParamsMock is GovernorVotes, GovernorCountingSimple {
(reduction, ) = abi.decode(params, (uint256, string));
}
// reverts on overflow
return GovernorVotes._getVotes(account, blockNumber, params) - reduction;
return super._getVotes(account, blockNumber, params) - reduction;
}

function _countVote(
Expand All @@ -47,7 +47,7 @@ contract GovernorWithParamsMock is GovernorVotes, GovernorCountingSimple {
(uint256 _uintParam, string memory _strParam) = abi.decode(params, (uint256, string));
emit CountParams(_uintParam, _strParam);
}
return GovernorCountingSimple._countVote(proposalId, account, support, weight, params);
return super._countVote(proposalId, account, support, weight, params);
}

function cancel(
Expand Down

0 comments on commit 8722c5c

Please sign in to comment.