From c10bcc0bfeacd6c61e71a97a4982af72ae604f28 Mon Sep 17 00:00:00 2001 From: Ian Costanzo Date: Wed, 4 Dec 2024 10:24:17 -0800 Subject: [PATCH] Fix for demo initial cred_type override Signed-off-by: Ian Costanzo --- demo/runners/agent_container.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/runners/agent_container.py b/demo/runners/agent_container.py index 61b07f4ef7..e529e6aefe 100644 --- a/demo/runners/agent_container.py +++ b/demo/runners/agent_container.py @@ -1366,7 +1366,7 @@ def arg_parser(ident: str = None, port: int = 8020): type=str, default=CRED_FORMAT_INDY, metavar=(""), - help="Credential type (indy, json-ld)", + help="Credential type (indy, json-ld, vc_di)", ) parser.add_argument( "--aip", @@ -1571,7 +1571,7 @@ async def create_agent_with_args(args, ident: str = None, extra_args: list = Non # Set anoncreds agent to use anoncreds credential format wallet_type = arg_file_dict.get("wallet-type") or args.wallet_type - if wallet_type == "askar-anoncreds": + if wallet_type == "askar-anoncreds" and cred_type == CRED_FORMAT_INDY: cred_type = CRED_FORMAT_ANONCREDS log_msg(