Skip to content
Snippets Groups Projects
Commit e745bb95 authored by Moul's avatar Moul
Browse files

[enh] #172: Refactor tx confirmation

Use click.confirm()
parent fc0c33fd
No related branches found
No related tags found
No related merge requests found
......@@ -137,23 +137,21 @@ async def send_transaction(
issuer_pubkey,
)
if (
yes
or input(
tabulate(
await transaction_confirmation(
issuer_pubkey,
pubkey_amount[0],
tx_amounts,
recipients,
outputbackchange,
comment,
),
tablefmt="fancy_grid",
)
+ "\nDo you confirm sending this transaction? [yes/no]: "
if not yes:
confirmation_table = tabulate(
await transaction_confirmation(
issuer_pubkey,
pubkey_amount[0],
tx_amounts,
recipients,
outputbackchange,
comment,
),
tablefmt="fancy_grid",
)
== "yes"
if yes or click.confirm(
f"{confirmation_table}\nDo you confirm sending this transaction?"
):
await handle_intermediaries_transactions(
key,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment