From f464b3ae7c1f7604edda69130182682f2277f23a Mon Sep 17 00:00:00 2001 From: Jimmy Kiselak Date: Mon, 4 Apr 2016 22:20:15 -0400 Subject: [PATCH] when decoding lbryum transactions, return values as Decimal --- lbrynet/core/LBRYcrdWallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/LBRYcrdWallet.py b/lbrynet/core/LBRYcrdWallet.py index cce937c21..9eb8a7303 100644 --- a/lbrynet/core/LBRYcrdWallet.py +++ b/lbrynet/core/LBRYcrdWallet.py @@ -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