Skip to content

Commit

Permalink
Add status to Wallet#tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamaguchi committed Nov 13, 2023
1 parent e63b484 commit b5d8641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/glueby/wallet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def tokens(color_id = Tapyrus::Color::ColorIdentifier.default, only_finalized =
txid: utxo.txid,
index: utxo.index,
address: Tapyrus::Script.parse_from_payload(utxo.script_pubkey.htb).to_addr,
amount: utxo.value
amount: utxo.value,
status: utxo.status == "finalized" ? :confirmed : :unconfirmed
}
end
end
Expand Down

0 comments on commit b5d8641

Please sign in to comment.