Skip to content

Commit 31451c0

Browse files
authored
Fix for demo initial cred_type override (openwallet-foundation#3378)
Signed-off-by: Ian Costanzo <[email protected]>
1 parent 4559704 commit 31451c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/runners/agent_container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ def arg_parser(ident: str = None, port: int = 8020):
13661366
type=str,
13671367
default=CRED_FORMAT_INDY,
13681368
metavar=("<cred-type>"),
1369-
help="Credential type (indy, json-ld)",
1369+
help="Credential type (indy, json-ld, vc_di)",
13701370
)
13711371
parser.add_argument(
13721372
"--aip",
@@ -1571,7 +1571,7 @@ async def create_agent_with_args(args, ident: str = None, extra_args: list = Non
15711571

15721572
# Set anoncreds agent to use anoncreds credential format
15731573
wallet_type = arg_file_dict.get("wallet-type") or args.wallet_type
1574-
if wallet_type == "askar-anoncreds":
1574+
if wallet_type == "askar-anoncreds" and cred_type == CRED_FORMAT_INDY:
15751575
cred_type = CRED_FORMAT_ANONCREDS
15761576

15771577
log_msg(

0 commit comments

Comments
 (0)