From 00cc3f2e3c699b9a7fcae9b7630df428b44c1364 Mon Sep 17 00:00:00 2001 From: "Andreas C. Osowski" Date: Mon, 19 Jun 2017 11:15:53 +0200 Subject: [PATCH 1/2] Make skipTests a mvn property --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1a59524..edb8488 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ 1.7 UTF-8 + true @@ -105,7 +106,7 @@ maven-surefire-plugin 2.12.4 - true + ${skipTests} From 65883fc80f86e4ec957c3b08f376cdec71a6d5c9 Mon Sep 17 00:00:00 2001 From: "Andreas C. Osowski" Date: Mon, 19 Jun 2017 11:16:04 +0200 Subject: [PATCH 2/2] Fixes #14 `IotaAPI.prepareTransfers` should pass `remainderAddress` to `IotaAPI.addRemainder` --- src/main/java/jota/IotaAPI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/jota/IotaAPI.java b/src/main/java/jota/IotaAPI.java index c6504bc..05e1655 100644 --- a/src/main/java/jota/IotaAPI.java +++ b/src/main/java/jota/IotaAPI.java @@ -456,7 +456,7 @@ public class IotaAPI extends IotaAPICore { throw new IllegalStateException("Not enough balance"); } - return addRemainder(seed, security, confirmedInputs, bundle, tag, totalValue, null, signatureFragments); + return addRemainder(seed, security, confirmedInputs, bundle, tag, totalValue, remainder, signatureFragments); } // Case 2: Get inputs deterministically @@ -467,7 +467,7 @@ public class IotaAPI extends IotaAPICore { @SuppressWarnings("unchecked") GetBalancesAndFormatResponse newinputs = getInputs(seed, security, 0, 0, totalValue); // If inputs with enough balance - return addRemainder(seed, security, newinputs.getInput(), bundle, tag, totalValue, null, signatureFragments); + return addRemainder(seed, security, newinputs.getInput(), bundle, tag, totalValue, remainder, signatureFragments); } } else {