Skip to content

Commit a2ed758

Browse files
authored
Merge branch 'main' into fix-get-credentials
2 parents 65acac8 + f52be0c commit a2ed758

File tree

1 file changed

+2
-2
lines changed
  • aries_cloudagent/messaging/credential_definitions

1 file changed

+2
-2
lines changed

Diff for: aries_cloudagent/messaging/credential_definitions/routes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ async def credential_definitions_fix_cred_def_wallet_record(request: web.BaseReq
388388

389389
cred_def_id = request.match_info["cred_def_id"]
390390

391-
ledger = context.inject(BaseLedger, required=False)
391+
ledger = context.inject_or(BaseLedger)
392392
if not ledger:
393393
reason = "No ledger available"
394394
if not context.settings.get_value("wallet.type"):
@@ -411,7 +411,7 @@ async def credential_definitions_fix_cred_def_wallet_record(request: web.BaseReq
411411
},
412412
)
413413
if 0 == len(found):
414-
await ledger.add_cred_def_non_secrets_record(
414+
await add_cred_def_non_secrets_record(
415415
session.profile, schema_id, iss_did, cred_def_id
416416
)
417417

0 commit comments

Comments
 (0)