Skip to content

Commit

Permalink
Merge pull request #21 from ethereum-push-notification-service/19_get…
Browse files Browse the repository at this point in the history
…Votes_support_added

19 get votes support added
  • Loading branch information
zaryab2000 authored Mar 22, 2024
2 parents bfd8cb7 + 9d5bd1f commit a97a133
Show file tree
Hide file tree
Showing 4 changed files with 323 additions and 1 deletion.
284 changes: 284 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions patches/@openzeppelin+contracts+5.0.0.patch
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
Loading

0 comments on commit a97a133

Please sign in to comment.