This commit is contained in:
Roman Storm 2020-10-29 20:58:42 -07:00
parent 95bdacc19b
commit 6f21597bfc
No known key found for this signature in database
GPG Key ID: 522F2A785F34E71F
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ contract GovernanceAggregator {
returns (
uint256 balance,
uint256 latestProposalId,
uint256 latestProposalIdState
uint256 latestProposalIdState,
uint256 timelock,
address delegatee
)
@ -68,8 +68,8 @@ contract GovernanceAggregator {
// Core core = Core(address(governance));
balance = governance.lockedBalance(account);
latestProposalId = governance.latestProposalIds(account);
if(latestProposalId != 0) {
latestProposalIdState = governance.state(latestProposalId)
if (latestProposalId != 0) {
latestProposalIdState = uint256(governance.state(latestProposalId));
}
timelock = governance.canWithdrawAfter(account);
delegatee = governance.delegatedTo(account);