From a66a9afb8bb71b35c4fff5683df26480628aca58 Mon Sep 17 00:00:00 2001 From: pinpong Date: Wed, 28 Dec 2016 14:24:36 +0100 Subject: [PATCH] fix --- src/main/java/jota/IotaAPIProxy.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/jota/IotaAPIProxy.java b/src/main/java/jota/IotaAPIProxy.java index 5c036b6..9a2ee1c 100644 --- a/src/main/java/jota/IotaAPIProxy.java +++ b/src/main/java/jota/IotaAPIProxy.java @@ -326,7 +326,9 @@ public class IotaAPIProxy { GetInclusionStateResponse gisr = getLatestInclusion(tailTxArray); if (gisr == null || gisr.getStates() == null || gisr.getStates().length == 0) return null; for (String trx : tailTxArray) { - Bundle gbr = getBundle(trx); + + GetBundleResponse bundleResponse = getBundle(trx); + Bundle gbr = new Bundle(bundleResponse.getTransactions(), bundleResponse.getTransactions().size()); if (gbr != null && gbr.getTransactions() != null) { if (inclusionStates) { boolean thisInclusion = gisr.getStates()[Arrays.asList(tailTxArray).indexOf(trx)]; @@ -779,8 +781,8 @@ public class IotaAPIProxy { List bundleTrytes = new ArrayList<>(); - Bundle bundle = getBundle(transaction); - + GetBundleResponse bundleResponse = getBundle(transaction); + Bundle bundle = new Bundle(bundleResponse.getTransactions(), bundleResponse.getTransactions().size()); for (Transaction element : bundle.getTransactions()) { bundleTrytes.add(Converter.transactionTrytes(element));