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

Commit

Permalink
fix: canRule false for juror who missed vote
Browse files Browse the repository at this point in the history
  • Loading branch information
satello committed Jun 21, 2018
1 parent ffa3863 commit 9ba4f32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/contracts/implementations/arbitrator/KlerosPOC.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,9 @@ class KlerosPOC extends ContractImplementation {
account
)).toNumber()

const currentSession = await this.getSession(this.contractAddress)
return validDraws && lastRuling !== currentSession
const currentSession = await this.getSession()
const period = await this.getPeriod()
return validDraws && lastRuling !== currentSession && period < arbitratorConstants.PERIOD.APPEAL
}

/**
Expand Down Expand Up @@ -628,6 +629,7 @@ class KlerosPOC extends ContractImplementation {
session,
arbitratorConstants.PERIOD.EXECUTE
)

// May not have happened yet
if (!eventLog) return null

Expand Down

0 comments on commit 9ba4f32

Please sign in to comment.