Skip to content

Commit

Permalink
Update api/fees/fees.go
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Gomes <[email protected]>
  • Loading branch information
freemanzMrojo and otherview authored Feb 5, 2025
1 parent 72e83e8 commit 5e3d9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/fees/fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (f *Fees) validateGetFeesHistoryParams(req *http.Request) (uint32, *chain.B
blockCount := uint32(blockCountUInt64)
maxBlocks := uint32(math.Max(float64(f.data.backtraceLimit), float64(f.data.size)))
if blockCount < 1 || blockCount > maxBlocks {
return 0, nil, nil, utils.BadRequest(errors.New(fmt.Sprintf("blockCount must be between 1 and %d", f.data.size)))
return 0, nil, nil, utils.BadRequest(errors.New(fmt.Sprintf("blockCount must be between 1 and %d", maxBlocks)))
}

//newestBlock validation
Expand Down

0 comments on commit 5e3d9df

Please sign in to comment.