From 3977fe595d7089004f3f178c6905b291fda8bc91 Mon Sep 17 00:00:00 2001 From: tra371 Date: Tue, 5 Mar 2024 00:51:59 +0630 Subject: [PATCH] fix: modify agent container and faber agent Signed-off-by: tra371 --- demo/runners/agent_container.py | 2 ++ demo/runners/faber.py | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/demo/runners/agent_container.py b/demo/runners/agent_container.py index d7f4f3c09d..dbdb7a772e 100644 --- a/demo/runners/agent_container.py +++ b/demo/runners/agent_container.py @@ -1472,11 +1472,13 @@ async def create_agent_with_args(args, ident: str = None, extra_args: list = Non if "cred_type" in args and args.cred_type not in [ CRED_FORMAT_INDY, + CRED_FORMAT_VC_DI, ]: public_did = None aip = 20 elif "cred_type" in args and args.cred_type in [ CRED_FORMAT_INDY, + CRED_FORMAT_VC_DI, ]: public_did = True else: diff --git a/demo/runners/faber.py b/demo/runners/faber.py index 2de31cb06d..bb9d9e9a45 100644 --- a/demo/runners/faber.py +++ b/demo/runners/faber.py @@ -523,7 +523,7 @@ async def main(args): "birthdate_dateint", "timestamp", ] - if faber_agent.cred_type == CRED_FORMAT_INDY: + if faber_agent.cred_type in [CRED_FORMAT_INDY, CRED_FORMAT_VC_DI]: faber_agent.public_did = True await faber_agent.initialize( the_agent=agent, @@ -535,7 +535,9 @@ async def main(args): else False ), ) - elif faber_agent.cred_type in [CRED_FORMAT_JSON_LD, CRED_FORMAT_VC_DI]: + elif faber_agent.cred_type in [ + CRED_FORMAT_JSON_LD, + ]: faber_agent.public_did = True await faber_agent.initialize(the_agent=agent) else: