Skip to content

Commit 0542fa0

Browse files
committed
Leave credentialStatus element in the LD credential
This change makes sure that the comparison of the provided reference data is comparable with the credential content. Signed-off-by: Tobias Wich <tobias.wich@ecsec.de>
1 parent 9dc2fa3 commit 0542fa0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • aries_cloudagent/protocols/issue_credential/v2_0/formats/ld_proof

aries_cloudagent/protocols/issue_credential/v2_0/formats/ld_proof/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ async def receive_credential(
503503

504504
# Remove values from cred that are not part of detail
505505
cred_dict.pop("proof")
506-
credential_status = cred_dict.pop("credentialStatus", None)
506+
credential_status = cred_dict.get("credentialStatus", None)
507507
detail_status = detail.options.credential_status
508508

509509
if cred_dict != detail_dict["credential"]:

0 commit comments

Comments
 (0)