Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-costa committed Aug 1, 2024
1 parent d74d4ab commit ec5e1b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cryptoadvance/specter/wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,14 +732,17 @@ def check_utxo(self):
# It may be related to https://github.com/bitcoin/bitcoin/issues/28555
# In this case we decode the raw transaction to get the data we want.
raw_transaction_hex = tx_from_core["hex"]
raw_transaction = self.rpc.decoderawtransaction(raw_transaction_hex)
raw_transaction = self.rpc.decoderawtransaction(
raw_transaction_hex
)
searched_raw_vout = [
_output
for _output in raw_transaction["vout"]
if _output["n"] == utxo_vout
][0]
tx_copy["amount"] = searched_raw_vout["value"]
tx_copy["address"] = searched_raw_vout["scriptPubKey"]["address"]
script_pubkey = searched_raw_vout["scriptPubKey"]
tx_copy["address"] = script_pubkey["address"]

# Append the copy to the _full_utxo list
_full_utxo.append(tx_copy)
Expand Down

0 comments on commit ec5e1b2

Please sign in to comment.