Skip to content

Commit 1a9e4ab

Browse files
committed
fix documentation and reverse accidental submodule updation
1 parent e8383fd commit 1a9e4ab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

service_contracts/src/Errors.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ library Errors {
202202
error RailNotAssociated(uint256 railId);
203203

204204
/// @notice The epoch range is invalid
205-
/// @notice Will be emitted if any of the following conditions is NOT met :
205+
/// @notice Will be emitted if any of the following conditions is NOT met:
206206
/// @notice 1. fromEpoch must be less than toEpoch
207207
/// @notice 2. toEpoch must be less than block number
208208
/// @notice 3. toEpoch must be greater than the activation epoch

service_contracts/src/FilecoinWarmStorageService.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,14 +1514,14 @@ contract FilecoinWarmStorageService is
15141514
uint256 startingPeriodDeadline = _calcPeriodDeadline(dataSetId, startingPeriod);
15151515

15161516
if (toEpoch < startingPeriodDeadline) {
1517-
// alternative way to check the same : `startingPeriod == endingPeriod`
1517+
// alternative way to check the same: `startingPeriod == endingPeriod`
15181518
if (_isPeriodProven(dataSetId, startingPeriod, currentPeriod)) {
1519-
provenEpochCount = (toEpoch - fromEpoch); // epochs : (`from + 1` -> `to`) (both inclusive)
1519+
provenEpochCount = (toEpoch - fromEpoch); // epochs: (`from + 1` -> `to`) (both inclusive)
15201520
lastProvenEpoch = toEpoch;
15211521
}
15221522
} else {
15231523
if (_isPeriodProven(dataSetId, startingPeriod, currentPeriod)) {
1524-
provenEpochCount += (startingPeriodDeadline - fromEpoch); // epochs : (`from + 1` -> `deadline`)
1524+
provenEpochCount += (startingPeriodDeadline - fromEpoch); // epochs: (`from + 1` -> `deadline`)
15251525
}
15261526

15271527
// now loop through the proving periods between endingPeriod and startingPeriod.
@@ -1534,7 +1534,7 @@ contract FilecoinWarmStorageService is
15341534

15351535
// now handle the last period separately
15361536
if (_isPeriodProven(dataSetId, endingPeriod, currentPeriod)) {
1537-
// then the epochs to add = `endingPeriodStarting` to `toEpoch`. But since `endingPeriodStarting` is simply the ending of its previous period + 1, so epochs : (`deadline + 1` -> `to`)
1537+
// then the epochs to add = `endingPeriodStarting` to `toEpoch`. But since `endingPeriodStarting` is simply the ending of its previous period + 1, so epochs: (`deadline + 1` -> `to`)
15381538
provenEpochCount += (toEpoch - _calcPeriodDeadline(dataSetId, endingPeriod - 1));
15391539
lastProvenEpoch = toEpoch;
15401540
}

0 commit comments

Comments
 (0)