Skip to content

Commit a6494c6

Browse files
fix: anoncreds missing thid (#202)
Signed-off-by: goncalo-frade-iohk <[email protected]>
1 parent 0cbfaf8 commit a6494c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

EdgeAgentSDK/EdgeAgent/Sources/DIDCommAgent/DIDCommAgent+Credentials.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ public extension DIDCommAgent {
152152
options: [
153153
.linkSecret(id: "", secret: linkSecretString),
154154
.credentialDefinitionDownloader(downloader: downloader),
155-
.schemaDownloader(downloader: downloader)
155+
.schemaDownloader(downloader: downloader),
156+
message.thid.map { .thid($0) } ?? .thid(message.id)
156157
]
157158
)
158159

@@ -222,7 +223,8 @@ public extension DIDCommAgent {
222223
.subjectDID(did),
223224
.linkSecret(id: did.string, secret: linkSecretString),
224225
.credentialDefinitionDownloader(downloader: downloader),
225-
.schemaDownloader(downloader: downloader)
226+
.schemaDownloader(downloader: downloader),
227+
offer.thid.map { .thid($0) } ?? .thid(offer.id)
226228
]
227229
)
228230

0 commit comments

Comments
 (0)