Skip to content

Commit c3913bc

Browse files
committed
flake8 fix
1 parent 9536d78 commit c3913bc

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

coldcore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2833,9 +2833,7 @@ def _prepare_send(
28332833
# Get info from psbt
28342834
psbtinfo = info
28352835
tx = info["tx"]
2836-
inputs = tx["vin"]
2837-
outputs = tx["vout"]
2838-
outs = outputs
2836+
outs = tx["vout"]
28392837
total_in_amt = 0
28402838
total_out_amt = 0
28412839
change = 0
@@ -2867,7 +2865,7 @@ def _prepare_send(
28672865
F.info(f"total output amount: {total_out_amt} BTC")
28682866
F.info(f"{num_inputs} inputs, {num_outputs} outputs")
28692867
F.info(f"network fee: {result['fee']} BTC ({perc:.2f}% of amount)")
2870-
F.info(f"change back: {change} BTC") # TODO: test calculation
2868+
F.info(f"change back: {change} BTC")
28712869
F.info("outputs:")
28722870

28732871
# Display outputs

src/coldcore/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,9 +922,7 @@ def _prepare_send(
922922
# Get info from psbt
923923
psbtinfo = info
924924
tx = info["tx"]
925-
inputs = tx["vin"]
926-
outputs = tx["vout"]
927-
outs = outputs
925+
outs = tx["vout"]
928926
total_in_amt = 0
929927
total_out_amt = 0
930928
change = 0
@@ -956,7 +954,7 @@ def _prepare_send(
956954
F.info(f"total output amount: {total_out_amt} BTC")
957955
F.info(f"{num_inputs} inputs, {num_outputs} outputs")
958956
F.info(f"network fee: {result['fee']} BTC ({perc:.2f}% of amount)")
959-
F.info(f"change back: {change} BTC") # TODO: test calculation
957+
F.info(f"change back: {change} BTC")
960958
F.info("outputs:")
961959

962960
# Display outputs

0 commit comments

Comments
 (0)