Skip to content

Commit

Permalink
Merge pull request #109 from niscy-eudiw/fixes
Browse files Browse the repository at this point in the history
Fix bug with dynamic issuing and deferred doc type
  • Loading branch information
phisakel authored Oct 14, 2024
2 parents 3f5dc84 + cfe3275 commit e1c45a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Swift",
"image": "swift:5.9",
"image": "swift:6.0",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": "false",
Expand All @@ -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",
Expand All @@ -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"
}
2 changes: 1 addition & 1 deletion Sources/EudiWalletKit/EudiWallet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e1c45a2

Please sign in to comment.