Skip to content

Commit cdfe8b4

Browse files
chore(demo): remove aip 10 code (openwallet-foundation#3619)
Signed-off-by: David Chaiken <chaiken@acm.org> Co-authored-by: jamshale <31809382+jamshale@users.noreply.github.com>
1 parent d7d4815 commit cdfe8b4

File tree

2 files changed

+268
-441
lines changed

2 files changed

+268
-441
lines changed

demo/runners/agent_container.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ def arg_parser(ident: str = None, port: int = 8020):
13761376
type=str,
13771377
default=20,
13781378
metavar=("<api>"),
1379-
help="API level (10 or 20 (default))",
1379+
help="API level (20)",
13801380
)
13811381
parser.add_argument("--timing", action="store_true", help="Enable timing information")
13821382
parser.add_argument(
@@ -1546,11 +1546,10 @@ async def create_agent_with_args(args, ident: str = None, extra_args: list = Non
15461546

15471547
if "aip" in args:
15481548
aip = int(args.aip)
1549-
if aip not in [
1550-
10,
1551-
20,
1552-
]:
1553-
raise Exception("Invalid value for aip, should be 10 or 20")
1549+
if aip == 10: # helpful message to flag legacy usage
1550+
raise Exception("Invalid value for aip, 10 is no longer supported. Use 20 instead.")
1551+
if aip != 20:
1552+
raise Exception("Invalid value for aip, should be 20")
15541553
else:
15551554
aip = 20
15561555

@@ -1582,16 +1581,10 @@ async def create_agent_with_args(args, ident: str = None, extra_args: list = Non
15821581
)
15831582

15841583
reuse_connections = "reuse_connections" in args and args.reuse_connections
1585-
# if reuse_connections and aip != 20:
1586-
# raise Exception("Can only specify `--reuse-connections` with AIP 2.0")
15871584
multi_use_invitations = "multi_use_invitations" in args and args.multi_use_invitations
1588-
if multi_use_invitations and aip != 20:
1589-
raise Exception("Can only specify `--multi-use-invitations` with AIP 2.0")
15901585
public_did_connections = (
15911586
"public_did_connections" in args and args.public_did_connections
15921587
)
1593-
if public_did_connections and aip != 20:
1594-
raise Exception("Can only specify `--public-did-connections` with AIP 2.0")
15951588

15961589
anoncreds_legacy_revocation = None
15971590
if "anoncreds_legacy_revocation" in args and args.anoncreds_legacy_revocation:

0 commit comments

Comments
 (0)