From 780c5d01d5b066c42398eafd03b5021bc9bcfa5d Mon Sep 17 00:00:00 2001 From: thomasv Date: Sat, 23 Feb 2013 12:11:32 +0100 Subject: [PATCH] fix get_tx_details --- lib/wallet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index b618d549..296e51b9 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -358,7 +358,7 @@ class Wallet: import datetime if not tx_hash: return '' tx = self.transactions.get(tx_hash) - is_mine, v, fee = self.get_tx_value(tx_hash) + is_mine, v, fee = self.get_tx_value(tx) conf, timestamp = self.verifier.get_confirmations(tx_hash) if timestamp: @@ -366,8 +366,8 @@ class Wallet: else: time_str = 'pending' - inputs = map(lambda x: x.get('address'), tx['inputs']) - outputs = map(lambda x: x.get('address'), tx['outputs']) + inputs = map(lambda x: x.get('address'), tx.inputs) + outputs = map(lambda x: x.get('address'), tx.d['outputs']) tx_details = "Transaction Details" +"\n\n" \ + "Transaction ID:\n" + tx_hash + "\n\n" \ + "Status: %d confirmations\n"%conf