From c29cfa0250bb91ce1b0517bdd987850ad690310e Mon Sep 17 00:00:00 2001 From: adrianziser Date: Fri, 29 Sep 2017 11:27:25 +0200 Subject: [PATCH] bugfix thx @th0br0 --- pom.xml | 2 +- src/main/java/jota/IotaAPI.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index c40a778..856c071 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.iota jota - 0.9.3-SNAPSHOT + 0.9.4-SNAPSHOT JOTA JOTA library is a simple Java wrapper around IOTA Node's JSON-REST HTTP interface. diff --git a/src/main/java/jota/IotaAPI.java b/src/main/java/jota/IotaAPI.java index e03653e..3ea8718 100644 --- a/src/main/java/jota/IotaAPI.java +++ b/src/main/java/jota/IotaAPI.java @@ -460,7 +460,7 @@ public class IotaAPI extends IotaAPICore { int totalBalance = 0; int i = 0; for (String balance : balances) { - long thisBalance = Integer.parseInt(balance); + long thisBalance = Long.parseLong(balance); // If input has balance, add it to confirmedInputs if (thisBalance > 0) { @@ -1006,7 +1006,7 @@ public class IotaAPI extends IotaAPICore { long totalBalance = 0; for (String balance : balances) { - long thisBalance = Integer.parseInt(balance); + long thisBalance = Long.parseLong(balance); totalBalance += thisBalance; }