Add missing docstrings (#5311)

Co-authored-by: cairo <cairoeth@protonmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
Ernesto García
2024-11-25 11:15:23 -06:00
committed by GitHub
parent b3ce884628
commit ed98138a78
2 changed files with 31 additions and 1 deletions

View File

@ -35,7 +35,10 @@ abstract contract GovernorCountingOverridable is GovernorVotes {
mapping(address voter => VoteReceipt) voteReceipt;
}
event VoteReduced(address indexed voter, uint256 proposalId, uint8 support, uint256 weight);
/// @dev The vote was reduced by `weight` after an override over the `delegate` by the original token holder
event VoteReduced(address indexed delegate, uint256 proposalId, uint8 support, uint256 weight);
/// @dev A delegated vote on `proposalId` was overridden by `weight`
event OverrideVoteCast(address indexed voter, uint256 proposalId, uint8 support, uint256 weight, string reason);
error GovernorAlreadyOverridenVote(address account);