Skip to content

Commit b79179b

Browse files
committed
docs: extra comment for passPhase()
1 parent fcdd0cf commit b79179b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ contract KlerosCore is IArbitrator {
514514
}
515515

516516
/** @dev Switches the phases between Staking and Freezing, also signal the switch to the dispute kits.
517+
* Note: Invariant: do not emit a `NewPhase` event if the phase is unchanged.
517518
*/
518519
function passPhase() external {
519520
if (phase == Phase.staking) {

contracts/src/arbitration/dispute-kits/DisputeKitClassic.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ contract DisputeKitClassic is BaseDisputeKit, IEvidence {
185185
}
186186

187187
/** @dev Passes the phase.
188+
* Note: Invariant: do not emit a `NewPhaseDisputeKit` event if the phase is unchanged.
188189
*/
189190
function passPhase() external override {
190191
if (core.phase() == KlerosCore.Phase.staking || core.isFreezingPhaseFinished()) {

contracts/src/arbitration/dispute-kits/DisputeKitSybilResistant.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ contract DisputeKitSybilResistant is BaseDisputeKit, IEvidence {
203203
}
204204

205205
/** @dev Passes the phase.
206+
* Note: Invariant: do not emit a `NewPhaseDisputeKit` event if the phase is unchanged.
206207
*/
207208
function passPhase() external override {
208209
if (core.phase() == KlerosCore.Phase.staking || core.isFreezingPhaseFinished()) {

0 commit comments

Comments
 (0)