diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 41a5104..04bca59 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Swift", - "image": "swift:5.9", + "image": "swift:6.0", "features": { "ghcr.io/devcontainers/features/common-utils:2": { "installZsh": "false", @@ -12,8 +12,7 @@ "ghcr.io/devcontainers/features/git:1": { "version": "os-provided", "ppa": "false" - }, - "ghcr.io/nikitakurpas/features/vapor-toolbox:1": {} + } }, "runArgs": [ "--cap-add=SYS_PTRACE", @@ -37,9 +36,6 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "swift --version", - // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" } \ No newline at end of file diff --git a/Sources/EudiWalletKit/EudiWallet.swift b/Sources/EudiWalletKit/EudiWallet.swift index 1603198..7564ad6 100644 --- a/Sources/EudiWalletKit/EudiWallet.swift +++ b/Sources/EudiWalletKit/EudiWallet.swift @@ -205,7 +205,7 @@ public final class EudiWallet: ObservableObject, @unchecked Sendable { let issueReq = try IssueRequest(id: pendingDoc.id, docType: pendingDoc.docType, privateKeyType: pkt, keyData: pk) try await openId4VCIService.initSecurityKeys(pendingDoc.privateKeyType == .secureEnclaveP256) let outcome = try await openId4VCIService.resumePendingIssuance(pendingDoc: pendingDoc, webUrl: webUrl) - guard case .issued(_, _) = outcome else { return pendingDoc } + if case let .pending(_) = outcome { return pendingDoc } let res = try await finalizeIssuing(id: pendingDoc.id, data: outcome, docType: pendingDoc.docType, format: format, issueReq: issueReq, openId4VCIService: openId4VCIService) return res }