Skip to content

Commit

Permalink
fix(app): Fix the well known config in the App
Browse files Browse the repository at this point in the history
Signed-off-by: Talwinder kaur <[email protected]>
  • Loading branch information
Talwinder kaur committed Nov 6, 2023
1 parent cd46046 commit 0f5a62f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -776,11 +776,7 @@ class MainActivity : FlutterActivity() {
val validationResult = try {
Did.validateLinkedDomains(issuerID, walletSDK.didResolver, null)
} catch (e: Exception) {
println("error received while getting well known didConfig $e")
val didValidateResultResp: MutableMap<String, Any> = mutableMapOf()
didValidateResultResp["isValid"] = false
didValidateResultResp["serviceURL"] = ""
return didValidateResultResp
throw java.lang.Exception("error while validating linked domains")
}

val didValidateResultResp: MutableMap<String, Any> = mutableMapOf()
Expand Down
9 changes: 3 additions & 6 deletions demo/app/ios/Runner/flutterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -878,12 +878,9 @@ public class SwiftWalletSDKPlugin: NSObject, FlutterPlugin {
var didValidateResult = DidValidateLinkedDomains(issuerID, didResolver, nil, &error)

if let actualError = error {
print("error in validate result", error!.localizedDescription)
var didValidateResultResp :[String:Any] = [
"isValid": false,
"serviceURL": "",
]
return result(didValidateResultResp)
return result(FlutterError.init(code: "Exception",
message: "error while validating linked domains",
details: actualError.localizedDescription))
}

var didValidateResultResp :[String:Any] = [
Expand Down

0 comments on commit 0f5a62f

Please sign in to comment.