Skip to content

Commit 04b3cfe

Browse files
authored
Let's spell stripped correctly
1 parent 1bed846 commit 04b3cfe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/Web3Core/Utility/Utilities.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ public struct Utilities {
1919
guard let decompressedKey = SECP256K1.combineSerializedPublicKeys(keys: [publicKey], outputCompressed: false) else {return nil}
2020
return publicToAddressData(decompressedKey)
2121
}
22-
var stipped = publicKey
23-
if stipped.count == 65 {
24-
if stipped[0] != 4 {
22+
var stripped = publicKey
23+
if stripped.count == 65 {
24+
if stripped[0] != 4 {
2525
return nil
2626
}
27-
stipped = stipped[1...64]
27+
stripped = stripped[1...64]
2828
}
29-
if stipped.count != 64 {
29+
if stripped.count != 64 {
3030
return nil
3131
}
32-
let sha3 = stipped.sha3(.keccak256)
32+
let sha3 = stripped.sha3(.keccak256)
3333
let addressData = sha3[12...31]
3434
return addressData
3535
}

0 commit comments

Comments
 (0)