Skip to content

Commit

Permalink
taa_accept default to True when sign is True
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <daniel.bluhm@sovrin.org>
  • Loading branch information
dbluhm committed Feb 25, 2020
1 parent f5df648 commit 921afb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aries_cloudagent/ledger/indy.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def _submit(
self,
request_json: str,
sign: bool = None,
taa_accept: bool = False,
taa_accept: bool = None,
public_did: str = "",
) -> str:
"""
Expand Down Expand Up @@ -249,6 +249,9 @@ async def _submit(
if public_did and sign is None:
sign = True

if taa_accept is None and sign:
taa_accept = True

if sign:
if not public_did:
raise BadLedgerRequestError("Cannot sign request without a public DID")
Expand Down

0 comments on commit 921afb5

Please sign in to comment.