Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
feat(disputes): remove netPNK until events are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras authored and satello committed Feb 16, 2018
1 parent 366340f commit 255bf03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/abstractWrappers/Disputes.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,14 +519,12 @@ class Disputes extends AbstractWrapper {
let isJuror = false
let votes = []
let hasRuled = false
let netPNK = 0
if (account) {
votes = await this.getVotesForJuror(arbitratorAddress, disputeId, account)
try {
const userData = await this.getUserDisputeFromStore(arbitratorAddress, disputeId, account)
isJuror = userData.isJuror
hasRuled = userData.hasRuled
netPNK = userData.netPNK || 0
} catch (e) {
isJuror = false
hasRuled = false
Expand Down Expand Up @@ -569,8 +567,7 @@ class Disputes extends AbstractWrapper {
isJuror,
votes,
hasRuled,
ruling,
netPNK
ruling
})
}
}
Expand Down
1 change: 0 additions & 1 deletion src/test/kleros.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ describe('Kleros', () => {
expect(disputesForJuror[0].deadline).toBe(1000 * (newState.lastPeriodChange + (await klerosPOCInstance.timePerPeriod(newState.period)).toNumber()))
expect(disputesForJuror[0].arbitrableContractAddress).toEqual(contractArbitrableTransactionData.address)
expect(disputesForJuror[0].votes).toEqual([1,2,3])
expect(disputesForJuror[0].netPNK).toBe(0)

// stateful notifications juror
jurorStatefullNotifications = await KlerosInstance.notifications.getStatefulNotifications(juror, true)
Expand Down

0 comments on commit 255bf03

Please sign in to comment.