diff --git a/lib/wallet.py b/lib/wallet.py index fb47a0356..4ddc67b49 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -336,8 +336,7 @@ class Wallet: for tx_hash, tx in self.transactions.items(): is_send, _, _ = self.get_tx_value(tx) if is_send: - for o in tx.outputs: - addr = o.get('address') + for addr, v in tx.outputs: if not self.is_mine(addr) and addr not in self.addressbook: self.addressbook.append(addr) # redo labels