From da527d74aacddd070bea22ed55af1e46c566b2ca Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Thu, 25 Jul 2019 19:56:37 +0200
Subject: [PATCH] [fix] #239: enumerate() wrongly moved to the non appropriate
 for loop

---
 silkaj/money.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/silkaj/money.py b/silkaj/money.py
index f7453347..7f200194 100644
--- a/silkaj/money.py
+++ b/silkaj/money.py
@@ -149,9 +149,9 @@ async def get_sources(pubkey):
 
     # add pending output
     pending_sources = list()
-    for i, pending in enumerate(pendings):
+    for pending in pendings:
         identifier = pending["hash"]
-        for output in pending["outputs"]:
+        for i, output in enumerate(pending["outputs"]):
             outputsplited = output.split(":")
             if outputsplited[2] == "SIG(" + pubkey + ")":
                 inputgenerated = InputSource(
-- 
GitLab