when decoding lbryum transactions, return values as Decimal

This commit is contained in:
Jimmy Kiselak 2016-04-04 22:20:15 -04:00
parent d4b7064d2f
commit f464b3ae7c

View file

@ -1067,7 +1067,7 @@ class LBRYumWallet(LBRYWallet):
decoded_tx['vout'] = []
for output in tx.outputs():
out = {}
out['value'] = output[2]
out['value'] = Decimal(output[2]) / Decimal(COIN)
decoded_tx['vout'].append(out)
return decoded_tx