Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
7072b623
Commit
7072b623
authored
Aug 13, 2021
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo casted -> cast
(cherry picked from commit
9253c614
)
parent
4a6d82ac
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
Governor.sol
contracts/governance/Governor.sol
+2
-2
IGovernor.sol
contracts/governance/IGovernor.sol
+3
-3
GovernorCompatibilityBravo.sol
...s/governance/compatibility/GovernorCompatibilityBravo.sol
+1
-1
GovernorCountingSimple.sol
contracts/governance/extensions/GovernorCountingSimple.sol
+1
-1
No files found.
contracts/governance/Governor.sol
View file @
7072b623
...
...
@@ -137,7 +137,7 @@ abstract contract Governor is Context, ERC165, EIP712, IGovernor {
}
/**
* @dev Amount of votes already cast
ed
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 cast
ed
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.
...
...
contracts/governance/IGovernor.sol
View file @
7072b623
...
...
@@ -47,7 +47,7 @@ abstract contract IGovernor is IERC165 {
event ProposalExecuted(uint256 proposalId);
/**
* @dev Emitted when a vote is cast
ed
.
* @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 cast
ed
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 cast
ed
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);
...
...
contracts/governance/compatibility/GovernorCompatibilityBravo.sol
View file @
7072b623
...
...
@@ -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 cast
ed
");
require(!receipt.hasVoted, "GovernorCompatibilityBravo: vote already cast");
receipt.hasVoted = true;
receipt.support = support;
receipt.votes = SafeCast.toUint96(weight);
...
...
contracts/governance/extensions/GovernorCountingSimple.sol
View file @
7072b623
...
...
@@ -89,7 +89,7 @@ abstract contract GovernorCountingSimple is Governor {
) internal virtual override {
ProposalVote storage proposalvote = _proposalVotes[proposalId];
require(!proposalvote.hasVoted[account], "GovernorVotingSimple: vote already cast
ed
");
require(!proposalvote.hasVoted[account], "GovernorVotingSimple: vote already cast");
proposalvote.hasVoted[account] = true;
if (support == uint8(VoteType.Against)) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment