From 34cfec47c014fc1bcd2587846fe7f4acf6d4e51f Mon Sep 17 00:00:00 2001 From: AZ Date: Fri, 27 Jan 2017 16:23:12 +0100 Subject: [PATCH] fixed getinputs --- 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 a2554f4..dbfd86b 100644 --- a/src/main/java/jota/IotaAPI.java +++ b/src/main/java/jota/IotaAPI.java @@ -329,7 +329,7 @@ public class IotaAPI extends IotaAPICoreProxy { final Bundle bundle = new Bundle(); final List signatureFragments = new ArrayList<>(); - int totalValue = 0; + long totalValue = 0; String tag = ""; // Iterate over all transfers, get totalValue @@ -459,7 +459,7 @@ public class IotaAPI extends IotaAPICoreProxy { * @property {int} end Ending key index * @property {int} threshold Min balance required **/ - public GetBalancesAndFormatResponse getInputs(String seed, int start, int end, int threshold) { + public GetBalancesAndFormatResponse getInputs(String seed, int start, int end, long threshold) { StopWatch stopWatch = new StopWatch(); // validate the seed if (!InputValidator.isTrytes(seed, 0)) {