From 854cd9e00c21cde96b37e2090334334687ae1437 Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Tue, 23 Jan 2024 21:04:29 +0000 Subject: [PATCH] fix warning --- Sources/KukaiCoreSwift/Services/TorusAuthService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/KukaiCoreSwift/Services/TorusAuthService.swift b/Sources/KukaiCoreSwift/Services/TorusAuthService.swift index 1f33f065..8a7a0904 100644 --- a/Sources/KukaiCoreSwift/Services/TorusAuthService.swift +++ b/Sources/KukaiCoreSwift/Services/TorusAuthService.swift @@ -331,8 +331,8 @@ public class TorusAuthService: NSObject { } let data = try await self.torusUtils.getPublicAddress(endpoints: nd.getTorusNodeEndpoints(), torusNodePubs: nd.getTorusNodePub(), verifier: verifierName, verifierId: socialUserId, isExtended: true) - var pubX = data.x?.padLeft(toLength: 64, withPad: "0") - var pubY = data.y?.padLeft(toLength: 64, withPad: "0") + let pubX = data.x?.padLeft(toLength: 64, withPad: "0") + let pubY = data.y?.padLeft(toLength: 64, withPad: "0") guard let x = pubX, let y = pubY,