Skip to content

Commit

Permalink
fix: end exclusive parse namespace end share range
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Aug 3, 2023
1 parent b3b8611 commit 7c66e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/proof/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func ParseNamespace(rawShares []shares.Share, startShare, endShare int) (appns.N
return appns.Namespace{}, fmt.Errorf("end share %d cannot be lower than starting share %d", endShare, startShare)
}

if endShare >= len(rawShares) {
if endShare > len(rawShares) {
return appns.Namespace{}, fmt.Errorf("end share %d is higher than block shares %d", endShare, len(rawShares))
}

Expand Down

0 comments on commit 7c66e61

Please sign in to comment.