We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03f816 commit 92c7c15Copy full SHA for 92c7c15
Sources/web3swift/Convenience/Array+Extension.swift
@@ -49,7 +49,7 @@ extension Array where Element: BinaryInteger {
49
let index = Int(ceil(normalizedValue))
50
51
let sorted_data = self.sorted()
52
- guard index < self.count else { return sorted_data[sorted_data.endIndex] }
+ guard index < self.count else { return sorted_data[sorted_data.count - 1] }
53
return sorted_data[index]
54
}
55
0 commit comments