diff --git a/demo/features/0160-connection.feature b/demo/features/0160-connection.feature index fd6aa56b2f..39926731ac 100644 --- a/demo/features/0160-connection.feature +++ b/demo/features/0160-connection.feature @@ -29,3 +29,4 @@ Feature: RFC 0160 Aries agent connection functions | --public-did --did-exchange --wallet-type askar-anoncreds | --did-exchange --wallet-type askar-anoncreds | | --public-did --mediation --wallet-type askar-anoncreds | --mediation --wallet-type askar-anoncreds | | --public-did --multitenant --wallet-type askar-anoncreds | --multitenant --wallet-type askar-anoncreds | + | --public-did --did-exchange --emit-did-peer-2 | --did-exchange --emit-did-peer-2 | diff --git a/demo/features/steps/0160-connection.py b/demo/features/steps/0160-connection.py index 4d3582aadf..afcf29404f 100644 --- a/demo/features/steps/0160-connection.py +++ b/demo/features/steps/0160-connection.py @@ -52,13 +52,16 @@ def step_impl(context, n): ] if agent_params and 0 < len(agent_params): in_args.extend(agent_params.split(" ")) - if extra_args and extra_args.get("wallet-type"): - in_args.extend( - [ - "--wallet-type", - extra_args.get("wallet-type"), - ] - ) + if extra_args: + if extra_args.get("wallet-type"): + in_args.extend( + [ + "--wallet-type", + extra_args.get("wallet-type"), + ] + ) + if extra_args.get("emit-did-peer-2"): + in_args.append("--emit-did-peer-2") context.active_agents[agent_name] = { "name": agent_name,