Skip to content

Commit 58fcb13

Browse files
committed
address review
Signed-off-by: Sara Tavares <[email protected]> Signed-off-by: Sara Tavares <[email protected]>
1 parent 224c2ea commit 58fcb13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Web3Core/Structure/SECP256k1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ extension SECP256K1 {
191191
}
192192
let result = serializedSignature.withUnsafeBytes { (rawBufferPtr: UnsafeRawBufferPointer) -> Int32? in
193193
if let rawPtr = rawBufferPtr.baseAddress, rawBufferPtr.count > 0 {
194-
let setPtr = rawPtr.assumingMemoryBound(to: UInt8.self)
194+
let ptr = rawPtr.assumingMemoryBound(to: UInt8.self)
195195
return withUnsafeMutablePointer(to: &recoverableSignature) { (signaturePointer: UnsafeMutablePointer<secp256k1_ecdsa_recoverable_signature>) -> Int32 in
196196
let res = secp256k1_ecdsa_recoverable_signature_parse_compact(context, signaturePointer, ptr, v)
197197
return res

0 commit comments

Comments
 (0)