Skip to content

Commit

Permalink
fix: sorting len
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Nov 10, 2024
1 parent fc806aa commit c715076
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions external/vaults/prepare.getVaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ func getVaults(
if end > uint64(len(data)) {
end = uint64(len(data))
}
if start >= uint64(len(data)) {
return []TSimplifiedExternalVault{}
}
data = data[start:end]

logs.Pretty(len(data))
Expand Down

0 comments on commit c715076

Please sign in to comment.