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

Commit 9ba4f32

Browse files
committed
fix: canRule false for juror who missed vote
1 parent ffa3863 commit 9ba4f32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/contracts/implementations/arbitrator/KlerosPOC.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,9 @@ class KlerosPOC extends ContractImplementation {
440440
account
441441
)).toNumber()
442442

443-
const currentSession = await this.getSession(this.contractAddress)
444-
return validDraws && lastRuling !== currentSession
443+
const currentSession = await this.getSession()
444+
const period = await this.getPeriod()
445+
return validDraws && lastRuling !== currentSession && period < arbitratorConstants.PERIOD.APPEAL
445446
}
446447

447448
/**
@@ -628,6 +629,7 @@ class KlerosPOC extends ContractImplementation {
628629
session,
629630
arbitratorConstants.PERIOD.EXECUTE
630631
)
632+
631633
// May not have happened yet
632634
if (!eventLog) return null
633635

0 commit comments

Comments
 (0)