-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from ethereum-push-notification-service/19_get…
…Votes_support_added 19 get votes support added
- Loading branch information
Showing
4 changed files
with
323 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/node_modules/@openzeppelin/contracts/governance/utils/IVotes.sol b/node_modules/@openzeppelin/contracts/governance/utils/IVotes.sol | ||
index 7ba012e..81f7578 100644 | ||
--- a/node_modules/@openzeppelin/contracts/governance/utils/IVotes.sol | ||
+++ b/node_modules/@openzeppelin/contracts/governance/utils/IVotes.sol | ||
@@ -29,8 +29,9 @@ interface IVotes { | ||
/** | ||
* @dev Returns the amount of votes that `account` had at a specific moment in the past. If the `clock()` is | ||
* configured to use block numbers, this will return the value at the end of the corresponding block. | ||
+ * Modification: Changed getPastVotes() to getPriorVotes(). (see {GovernorVotesUpgradeable-_getVotes}). | ||
*/ | ||
- function getPastVotes(address account, uint256 timepoint) external view returns (uint256); | ||
+ function getPriorVotes(address account, uint256 timepoint) external view returns (uint256); | ||
|
||
/** | ||
* @dev Returns the total supply of votes available at a specific moment in the past. If the `clock()` is |
Oops, something went wrong.