From 5049790c46d0df1cb49a1a741a5bf1241a059880 Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Tue, 19 May 2015 13:32:59 +0200
Subject: [PATCH] Fixed bug #131

---
 src/cutecoin/core/wallet.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/cutecoin/core/wallet.py b/src/cutecoin/core/wallet.py
index 0ec707fd..e5b884dd 100644
--- a/src/cutecoin/core/wallet.py
+++ b/src/cutecoin/core/wallet.py
@@ -73,6 +73,9 @@ class Cache():
         receivers = [o.pubkey for o in tx.outputs
                      if o.pubkey != tx.issuers[0]]
 
+        if len(receivers) == 0:
+            receivers = [tx.issuers[0]]
+
         try:
             issuer_uid = Person.lookup(tx.issuers[0], community).uid
         except PersonNotFoundError:
-- 
GitLab