Skip to content
Permalink
Browse files

fix: canRule false for juror who missed vote

  • Loading branch information...
satello committed Jun 21, 2018
1 parent ffa3863 commit 9ba4f3288e4ca9418a966f3b199c2053296c7449
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/contracts/implementations/arbitrator/KlerosPOC.js
@@ -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
}

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

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

0 comments on commit 9ba4f32

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