Skip to content

Commit

Permalink
refactor: minor variable rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed May 27, 2022
1 parent d218045 commit a7d325f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/src/arbitration/KlerosCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -523,11 +523,11 @@ contract KlerosCore is IArbitrator {
freezeBlock = block.number;
} else {
// phase == Phase.freezing
bool freezingPhaseFinished = this.freezingPhaseTimeout();
bool timeout = this.freezingPhaseTimeout();
for (int256 i = int256(disputesKitIDsThatNeedFreezing.length) - 1; i >= 0; --i) {
uint256 disputeKitID = disputesKitIDsThatNeedFreezing[uint256(i)];
IDisputeKit disputeKit = disputeKitNodes[disputesKitIDsThatNeedFreezing[uint256(i)]].disputeKit;
if (freezingPhaseFinished && !disputeKit.isResolving()) {
if (timeout && !disputeKit.isResolving()) {
// Force the dispute kit to be ready for Staking phase.
disputeKit.passPhase(); // Should not be called if already in Resolving phase, because it reverts.
require(disputeKit.isResolving(), "A dispute kit has not passed to Resolving phase");
Expand Down

0 comments on commit a7d325f

Please sign in to comment.