Skip to content

Commit fe1acbc

Browse files
committed
Set initial lastEpochWithData value to 0
1 parent c318c0a commit fe1acbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UsageValidator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ contract UsageValidator is IValidator {
4646
) external override returns (ValidationResult memory result) {
4747
bytes32 key = _railKey(railId);
4848
uint256 sum = 0;
49-
uint256 lastEpochWithData = fromEpoch - 1;
49+
uint256 lastEpochWithData = 0;
5050
bool foundData = false;
5151

5252
for (uint256 epoch = fromEpoch; epoch <= toEpoch; epoch++) {

0 commit comments

Comments
 (0)