Skip to content

Commit

Permalink
fix: comparison for aggregate single id verifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Sep 9, 2024
1 parent b22ff1b commit 6053f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/torusresearch/torus-utils-swift.git",
"state" : {
"revision" : "303dc2cf41db7c10f769855edad0e717ced2d554",
"revision" : "7788752bed699b3d34e78c2c51174f814d02610b",
"version" : "9.0.0"
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/CustomAuth/CustomAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class CustomAuth {
if args.subVerifierDetailsArray.isEmpty {
throw CASDKError.invalidParameters
}
if args.subVerifierDetailsArray.count == 1 && args.aggregateVerifierType == AggregateVerifierType.single_id_verifier {
if args.subVerifierDetailsArray.count != 1 && args.aggregateVerifierType == AggregateVerifierType.single_id_verifier {
throw CASDKError.invalidParameters
}

Expand Down

0 comments on commit 6053f8e

Please sign in to comment.