fix bug: to_address -> address
authorthomasv <thomasv@gitorious>
Thu, 6 Dec 2012 09:36:05 +0000 (10:36 +0100)
committerthomasv <thomasv@gitorious>
Thu, 6 Dec 2012 09:36:05 +0000 (10:36 +0100)
lib/wallet.py

index c5f948a..b28e0c3 100644 (file)
@@ -783,7 +783,7 @@ class Wallet:
 
         for address, x in outputs:
             if address not in self.addressbook and not self.is_mine(address):
-                self.addressbook.append(to_address)
+                self.addressbook.append(address)
 
         if label: 
             tx_hash = Hash(tx.decode('hex') )[::-1].encode('hex')