From 7072b623afc25b853822ab22f6578334546afbd9 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Fri, 13 Aug 2021 18:15:44 -0300 Subject: [PATCH] Fix typo casted -> cast (cherry picked from commit 9253c614d27619d67da1d708a0d68e6a4f73539d) --- contracts/governance/Governor.sol | 4 ++-- contracts/governance/IGovernor.sol | 6 +++--- .../governance/compatibility/GovernorCompatibilityBravo.sol | 2 +- contracts/governance/extensions/GovernorCountingSimple.sol | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/governance/Governor.sol b/contracts/governance/Governor.sol index d7a0888c21e..20e23189ea4 100644 --- a/contracts/governance/Governor.sol +++ b/contracts/governance/Governor.sol @@ -137,7 +137,7 @@ abstract contract Governor is Context, ERC165, EIP712, IGovernor { } /** - * @dev Amount of votes already casted passes the threshold limit. + * @dev Amount of votes already cast passes the threshold limit. */ function _quorumReached(uint256 proposalId) internal view virtual returns (bool); @@ -305,7 +305,7 @@ abstract contract Governor is Context, ERC165, EIP712, IGovernor { } /** - * @dev Internal vote casting mechanism: Check that the vote is pending, that it has not been casted yet, retrieve + * @dev Internal vote casting mechanism: Check that the vote is pending, that it has not been cast yet, retrieve * voting weight using {IGovernor-getVotes} and call the {_countVote} internal function. * * Emits a {IGovernor-VoteCast} event. diff --git a/contracts/governance/IGovernor.sol b/contracts/governance/IGovernor.sol index 3cf2b9f6b00..6277e7ed290 100644 --- a/contracts/governance/IGovernor.sol +++ b/contracts/governance/IGovernor.sol @@ -47,7 +47,7 @@ abstract contract IGovernor is IERC165 { event ProposalExecuted(uint256 proposalId); /** - * @dev Emitted when a vote is casted. + * @dev Emitted when a vote is cast. * * Note: `support` values should be seen as buckets. There interpretation depends on the voting module used. */ @@ -131,7 +131,7 @@ abstract contract IGovernor is IERC165 { /** * @notice module:user-config - * @dev Minimum number of casted voted requiered for a proposal to be successful. + * @dev Minimum number of cast voted requiered for a proposal to be successful. * * Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the * quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes}). @@ -149,7 +149,7 @@ abstract contract IGovernor is IERC165 { /** * @notice module:voting - * @dev Returns weither `account` has casted a vote on `proposalId`. + * @dev Returns weither `account` has cast a vote on `proposalId`. */ function hasVoted(uint256 proposalId, address account) public view virtual returns (bool); diff --git a/contracts/governance/compatibility/GovernorCompatibilityBravo.sol b/contracts/governance/compatibility/GovernorCompatibilityBravo.sol index 78f4e018d40..2ece48c9e8b 100644 --- a/contracts/governance/compatibility/GovernorCompatibilityBravo.sol +++ b/contracts/governance/compatibility/GovernorCompatibilityBravo.sol @@ -283,7 +283,7 @@ abstract contract GovernorCompatibilityBravo is ProposalDetails storage details = _proposalDetails[proposalId]; Receipt storage receipt = details.receipts[account]; - require(!receipt.hasVoted, "GovernorCompatibilityBravo: vote already casted"); + require(!receipt.hasVoted, "GovernorCompatibilityBravo: vote already cast"); receipt.hasVoted = true; receipt.support = support; receipt.votes = SafeCast.toUint96(weight); diff --git a/contracts/governance/extensions/GovernorCountingSimple.sol b/contracts/governance/extensions/GovernorCountingSimple.sol index 0707324cc72..f1cffb5b991 100644 --- a/contracts/governance/extensions/GovernorCountingSimple.sol +++ b/contracts/governance/extensions/GovernorCountingSimple.sol @@ -89,7 +89,7 @@ abstract contract GovernorCountingSimple is Governor { ) internal virtual override { ProposalVote storage proposalvote = _proposalVotes[proposalId]; - require(!proposalvote.hasVoted[account], "GovernorVotingSimple: vote already casted"); + require(!proposalvote.hasVoted[account], "GovernorVotingSimple: vote already cast"); proposalvote.hasVoted[account] = true; if (support == uint8(VoteType.Against)) {