Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package.json #67

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "flexible-voting",
"version": "1.0.0",
"version": "1.0.1",
"description": "Flexible Voting is an extension to the widely used OpenZeppelin DAO Governor that enables delegates to split their voting weight across For/Against/Abstain options and cast rolling votes for a given proposal. This file is included for compatibility with npm based development frameworks such as Hardhat.",
"author": "Contributors to https://github.com/ScopeLift/flexible-voting",
"files": [
"src/*"
"src/**/*"
],
"repository": {
"type": "git",
"url": "git+https://github.com/ScopeLift/flexible-voting.git"
"url": "git+https://github.com/yorhodes/flexible-voting.git"
},
"license": "MIT",
"bugs": {
Expand Down
4 changes: 2 additions & 2 deletions src/FlexVotingClient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ abstract contract FlexVotingClient {
/// @notice Returns the `_user`'s raw balance at `_blockNumber`.
/// @param _user The account that's historical raw balance will be looked up.
/// @param _blockNumber The block at which to lookup the _user's raw balance.
function getPastRawBalance(address _user, uint256 _blockNumber) public view returns (uint256) {
function getPastRawBalance(address _user, uint256 _blockNumber) public virtual view returns (uint256) {
return balanceCheckpoints[_user].getAtProbablyRecentBlock(_blockNumber);
}

/// @notice Returns the sum total of raw balances of all users at `_blockNumber`.
/// @param _blockNumber The block at which to lookup the total balance.
function getPastTotalBalance(uint256 _blockNumber) public view returns (uint256) {
function getPastTotalBalance(uint256 _blockNumber) public virtual view returns (uint256) {
return totalBalanceCheckpoints.getAtProbablyRecentBlock(_blockNumber);
}
}