Skip to content
Snippets Groups Projects
Commit 515a49c6 authored by atrax's avatar atrax Committed by Moul
Browse files

[enh] #300 : Display corresponding uid if found

parent 778d96c2
No related branches found
No related tags found
1 merge request!164[enh] #300 : Display corresponding uid if found
Pipeline #11265 passed
...@@ -83,12 +83,19 @@ async def show_amount_from_pubkey(pubkey, inputs_balance): ...@@ -83,12 +83,19 @@ async def show_amount_from_pubkey(pubkey, inputs_balance):
currency_symbol = await CurrencySymbol().symbol currency_symbol = await CurrencySymbol().symbol
ud_value = await UDValue().ud_value ud_value = await UDValue().ud_value
average, monetary_mass = await get_average() average, monetary_mass = await get_average()
# if `pubkey` is a pubkey, get pubkey:checksum member = False
# if `pubkey` is a pubkey, get pubkey:checksum and uid
if pubkey != "Total": if pubkey != "Total":
member = await wot.is_member(pubkey)
pubkey = display_pubkey_and_checksum(pubkey) pubkey = display_pubkey_and_checksum(pubkey)
# display balance table # display balance table
display = list() display = list()
display.append(["Balance of pubkey", pubkey]) display.append(["Balance of pubkey", pubkey])
if member:
display.append(["User identifier", member["uid"]])
if totalAmountInput - balance != 0: if totalAmountInput - balance != 0:
display_amount(display, "Blockchain", balance, ud_value, currency_symbol) display_amount(display, "Blockchain", balance, ud_value, currency_symbol)
display_amount( display_amount(
......
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