Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Apr 18, 2024
1 parent 11988e0 commit b2e598e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/TorusUtils/Extensions/TorusUtils+extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ extension TorusUtils {
internal func getPublicKeyPointFromPubkeyString(pubKey: String) throws -> (String, String) {
let publicKeyHashData = Data(hex: pubKey.strip04Prefix())
if !(publicKeyHashData.count == 64) {
throw "Invalid address,"
throw TorusUtilError.invalidKeySize
}

let xCoordinateData = publicKeyHashData.prefix(32).toHexString()
Expand Down
4 changes: 2 additions & 2 deletions Sources/TorusUtils/TorusUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ open class TorusUtils: AbstractTorusUtils {
let result = try await session.data(for: allowHostRequest)
let responseData = try JSONDecoder().decode(AllowSuccess.self, from: result.0)
if (responseData.success == false ) {
let errorData = try JSONDecoder().decode(AllowRejected.self, from: result.0)
throw "code: \(errorData.code), error: \(errorData.error)"
let _ = try JSONDecoder().decode(AllowRejected.self, from: result.0)
// throw "code: \(errorData.code), error: \(errorData.error)"
}
} catch {
os_log("retrieveShares: signer allow: %@", log: getTorusLogger(log: TorusUtilsLogger.core, type: .error), type: .error, error.localizedDescription)
Expand Down
2 changes: 1 addition & 1 deletion Torus-utils.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Torus-utils"
spec.version = "8.0.5"
spec.version = "8.0.6"
spec.ios.deployment_target = "13.0"
spec.summary = "Retrieve user shares"
spec.homepage = "https://github.com/torusresearch/torus-utils-swift"
Expand Down

0 comments on commit b2e598e

Please sign in to comment.