Skip to content
Permalink
Browse files

feat(disputes): remove netPNK until events are fixed

  • Loading branch information...
epiqueras authored and satello committed Feb 16, 2018
1 parent 366340f commit 255bf03cbf85780bf1a8fbdbc8274e2019149a7c
Showing with 1 addition and 5 deletions.
  1. +1 −4 src/abstractWrappers/Disputes.js
  2. +0 −1 src/test/kleros.test.js
@@ -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
@@ -569,8 +567,7 @@ class Disputes extends AbstractWrapper {
isJuror,
votes,
hasRuled,
ruling,
netPNK
ruling
})
}
}
@@ -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)

0 comments on commit 255bf03

Please sign in to comment.
You can’t perform that action at this time.