Merge pull request #15 from th0br0/dev

Fixes #14
This commit is contained in:
Oliver Nitzschke
2017-06-21 10:23:05 +02:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -19,6 +19,7 @@
<properties>
<java-version>1.7</java-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<skipTests>true</skipTests>
</properties>
<dependencies>
@@ -105,7 +106,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<skipTests>true</skipTests>
<skipTests>${skipTests}</skipTests>
</configuration>
</plugin>
</plugins>
+2 -2
View File
@@ -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 {