From 9ec894617980a2e498d2bb4b3411838b50319ea5 Mon Sep 17 00:00:00 2001 From: Paul Handy Date: Sun, 12 Nov 2017 21:54:50 -0800 Subject: [PATCH] Update IotaApi.java * Fixed bundle signature fragment array iteration --- jota/src/main/java/jota/IotaAPI.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jota/src/main/java/jota/IotaAPI.java b/jota/src/main/java/jota/IotaAPI.java index edc000d..cf85f74 100644 --- a/jota/src/main/java/jota/IotaAPI.java +++ b/jota/src/main/java/jota/IotaAPI.java @@ -670,8 +670,8 @@ public class IotaAPI extends IotaAPICore { sig.getSignatureFragments().add(trx.getSignatureFragments()); // Find the subsequent txs with the remaining signature fragment - for (int y = i; y < bundle.getTransactions().size() - 1; y++) { - Transaction newBundleTx = bundle.getTransactions().get(i + 1); + for (int y = i + 1; y < bundle.getTransactions().size(); y++) { + Transaction newBundleTx = bundle.getTransactions().get(y); // Check if new tx is part of the signature fragment if (newBundleTx.getAddress().equals(address) && newBundleTx.getValue() == 0) { @@ -1115,4 +1115,4 @@ public class IotaAPI extends IotaAPICore { return new IotaAPI(this); } } -} \ No newline at end of file +}