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.
2 parents 9f3fb48 + c2a141b commit 691eb06Copy full SHA for 691eb06
Sources/web3swift/EthereumAddress/Extensions.swift
@@ -10,7 +10,8 @@ import Foundation
10
11
extension Array where Element == UInt8 {
12
init(hex: String) {
13
- self.init(reserveCapacity: hex.unicodeScalars.lazy.underestimatedCount)
+ self.init()
14
+ self.reserveCapacity(hex.unicodeScalars.lazy.underestimatedCount)
15
var buffer: UInt8?
16
var skip = hex.hasPrefix("0x") ? 2 : 0
17
for char in hex.unicodeScalars.lazy {
0 commit comments