Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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