File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2834,9 +2834,9 @@ def _prepare_send(
2834
2834
psbtinfo = info
2835
2835
tx = info ["tx" ]
2836
2836
outs = tx ["vout" ]
2837
- total_in_amt = 0
2838
- total_out_amt = 0
2839
- change = 0
2837
+ total_in_amt = 0.0
2838
+ total_out_amt = 0.0
2839
+ change = 0.0
2840
2840
2841
2841
# Add up total input amount
2842
2842
for i in psbtinfo ["inputs" ]:
@@ -2876,10 +2876,10 @@ def _prepare_send(
2876
2876
except Exception :
2877
2877
# TODO handle this
2878
2878
raise
2879
- amt = bold (green (f"{ o ['value' ]} BTC" ))
2879
+ display_amt = bold (green (f"{ o ['value' ]} BTC" ))
2880
2880
yours = addr_info ["ismine" ] or addr_info ["iswatchonly" ]
2881
2881
yours_str = " (your address)" if yours else ""
2882
- F .blank (f" -> { bold (addr )} ({ amt } ){ yours_str } " )
2882
+ F .blank (f" -> { bold (addr )} ({ display_amt } ){ yours_str } " )
2883
2883
2884
2884
F .p ()
2885
2885
F .done (f"wrote PSBT to { filename } - sign with coldcard" )
Original file line number Diff line number Diff line change @@ -923,9 +923,9 @@ def _prepare_send(
923
923
psbtinfo = info
924
924
tx = info ["tx" ]
925
925
outs = tx ["vout" ]
926
- total_in_amt = 0
927
- total_out_amt = 0
928
- change = 0
926
+ total_in_amt = 0.0
927
+ total_out_amt = 0.0
928
+ change = 0.0
929
929
930
930
# Add up total input amount
931
931
for i in psbtinfo ["inputs" ]:
@@ -965,10 +965,10 @@ def _prepare_send(
965
965
except Exception :
966
966
# TODO handle this
967
967
raise
968
- amt = bold (green (f"{ o ['value' ]} BTC" ))
968
+ display_amt = bold (green (f"{ o ['value' ]} BTC" ))
969
969
yours = addr_info ["ismine" ] or addr_info ["iswatchonly" ]
970
970
yours_str = " (your address)" if yours else ""
971
- F .blank (f" -> { bold (addr )} ({ amt } ){ yours_str } " )
971
+ F .blank (f" -> { bold (addr )} ({ display_amt } ){ yours_str } " )
972
972
973
973
F .p ()
974
974
F .done (f"wrote PSBT to { filename } - sign with coldcard" )
You can’t perform that action at this time.
0 commit comments