Skip to content

Commit

Permalink
MEX-352: fix userVotingPower
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos-rebegea committed Aug 10, 2023
1 parent 9566d64 commit f9d6c4e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export class GovernanceProposalResolver {
@AuthUser() user: UserAuthResult,
@Parent() governanceProposal: GovernanceProposalModel
): Promise<string> {
const userQuorum = await this.governanceQuorum.userQuorum(governanceProposal.contractAddress, user.address, governanceProposal.rootHash);
const rootHash = await this.governanceAbi.proposalRootHash(governanceProposal.contractAddress, governanceProposal.proposalId);
const userQuorum = await this.governanceQuorum.userQuorum(governanceProposal.contractAddress, user.address, rootHash);
return new BigNumber(userQuorum).integerValue().toFixed();
}
}

0 comments on commit f9d6c4e

Please sign in to comment.