From 4628fecaca82677969604ff426c1200b617a2a84 Mon Sep 17 00:00:00 2001
From: Tim Gorgs <tim@blockchainlab.digital>
Date: Wed, 24 Nov 2021 11:40:05 +0100
Subject: [PATCH] Fix AttributeError

Signed-off-by: Tim Gorgs <tim@blockchainlab.digital>
---
 aries_cloudagent/messaging/credential_definitions/routes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aries_cloudagent/messaging/credential_definitions/routes.py b/aries_cloudagent/messaging/credential_definitions/routes.py
index d35c5f61bf..58f2247a56 100644
--- a/aries_cloudagent/messaging/credential_definitions/routes.py
+++ b/aries_cloudagent/messaging/credential_definitions/routes.py
@@ -411,7 +411,7 @@ async def credential_definitions_fix_cred_def_wallet_record(request: web.BaseReq
             },
         )
         if 0 == len(found):
-            await ledger.add_cred_def_non_secrets_record(
+            await add_cred_def_non_secrets_record(
                 session.profile, schema_id, iss_did, cred_def_id
             )